Recent

Author Topic: Zooming problem in user print preview  (Read 893 times)

Jiří Huňáček

  • New Member
  • *
  • Posts: 14
Zooming problem in user print preview
« on: April 15, 2023, 04:55:45 pm »
Hello to everybody,

I need help with zoom (during run-time) in LazReport.

I have created a report and I have pzDefault set in the "InitialZoom" property. When I change this property to e.g. pzWideScreen and start the internal preview (.ShowReport), this zoom change is reflected.

Since I don't like the internal preview, I created a new form with the frPreview element. I can load and display the report without any problems, but the zoom is reset to pzOnePage regardless of what is set in the "InitialZoom" property. I tried setting the zoom programmatically (on both pzTwoPages and pzWideScreen) but it still shows as one page.

Unfortunately, I did not find relevant information on the Internet about this problem.

And one more question, is it possible to set the zoom to specific percentages? So far I've only found four constants (pzDefault, pzOnePage, pzTwoPages and pzWideScreen), but I couldn't find anywhere how to put a specific value there, e.g. 75%.
I am attaching the test code and thanks for any advice.

I am attaching the test code and thanks for any advice.

George
« Last Edit: April 15, 2023, 05:05:45 pm by Jiří Huňáček »
Best regards / mit freundlichen Grüßen / s pozdravem
Jiří Huňáček (George)

paweld

  • Hero Member
  • *****
  • Posts: 851
Re: Zooming problem in user print preview
« Reply #1 on: April 15, 2023, 07:42:14 pm »
Sample in attachment
Best regards / Pozdrawiam
paweld

 

TinyPortal © 2005-2018