PrintPreview usage from main program

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

PrintPreview usage from main program

Postby bruce » March 13th, 2018, 10:27 am

Hi Guys

The PrintPreview looks excellent but the examples show the usage where the preview is central to the main program. I most cases, I find that my programs have a few different kinds of reports.

So, my question is: How do you see the tool being used in a general way to preview multiple reports?

My approach is to create a Delphi form with a preview component, menu, toolbar and statusbar. I create a public function that assigns a method to a private variable FRenderReport procedure. In the form OnShow event, I call FRenderReport.

The problem is, the render procedures need the canvas and the bounds. So, I send the PrintPreview as a parameter to render. It works !!! but it feels very kludgy.

I'm interested to know how you expect the tool to be used in this kind of app.

Cheers
Bruce
bruce
Member
Member
 
Posts: 2
Joined: August 6th, 2013, 7:25 am

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 3 guests