Sending page size in DDR

Posted by: nlcandyman on 3 August 2017, 3:23 pm EST

  • Posted 3 August 2017, 3:23 pm EST

    Hi all,

    We are using Data Dynamics Reporting in an environment with label printers.
    Everything works fine except for one thing we run into at the moment;

    By default, the labels are, and the printer printer is set to a size of 80mm x 120mm.
    Every now and then, labels need to be printed that have a different size (in this case, 80mm x 60mm).

    The only way they can use these labels at the moment is by either changing the page size (in the windows driver) manually or by creating an extra printer that holds these settings...

    Is there any way, with sending a certain piece to Code (in the label?), that the label size will be sent to the printer/windows driver so that one and the same printer will be capable of printing different size of labels without having to change things in windows?

    Thanks in advance.
  • Replied 3 August 2017, 3:23 pm EST

    Hello,

    When you render a report, in the viewer or through the rendering extensions, by default we use whatever paper size was set at design time. When the report is created we'll set the page size to whatever is appropriate to that region, it doesn't change automatically after that.

    Before loading reports in the viewer you'll have to programmatically modify the ReportDefinition to adjust the size before loading the report. I would suggest you to kindly take a look at the code provided at the following forum post and it should help you in getting the desired results:
    http://www.datadynamics.com/forums/116878/ShowPost.aspx

    Regards,
    Sankalp
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels