Report Width and PrintWidth properties

Posted by: marcel-sammut on 4 August 2017, 2:56 pm EST

  • Posted 4 August 2017, 2:56 pm EST

    I've have a report which determines and sets the PrintWidth property of the report (because orientation is changed during run-time).  After we set the printwidth, we then set the Width property of the report to the PrintWidth (e.x.: Me.Width = Me.PrintWidth).

    On some machines, the with property is actually updated.  However for some reason, the Width property is never updated on other machines.  This throws some sizing calculation off.  Again, this behavior is speratic, and is not always the same.  Some machines show large differences between PrintWidth and Width properties, while others display very small differences not visible by eye.

    I've tested this by displaying the "Width" and "PrintWidth" properties in the report at different points of the generation (i.e.: report_start, detail_format and report_end).

    Any idea why this is occuring.  I've looked at the Printer object to see if I can see any symptoms, but nothing.  I've also made sure that printer drivers are identical on all machines tested.  We are using ActiveReports V2 SP2.

    Thanks in advance,
    Marcel Sammut

  • Replied 4 August 2017, 2:56 pm EST

    Hi.  I don't know the answer, but I am having something similar.  We have a label that prints sideways, so the width of the paper is 0.8 inches, and the height is 5 inches.  The paper width keeps resetting to a minimum of about an inch, so it is lengthening the width.  But, when I look at the properties, the paper width is correct.

Need extra support?

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

Learn More

Forum Channels