General information
Category:
Reports & Report designer
Hi
I just modified the report preview to suit my needs (captions, keyboard handling (+,-,ctr+MouseWheel for zoom in/out), PNGs instead of BMP/MSK and I've looked at the code.
Well, it's a lot of code and I believe that there is a lot of work to replicate it, even if at a small scale.
The report preview form calls report listener .OnPreviewClose(.T.) for printing in its Release() method.
I tried on the sample form with a shape as the preview device and it printed without exit.
>I'm building a custom print preview form using a shape for my canvas.
>
>Reading through the online documentation, I've figured out how to move between pages. This works great!
>
>Now I'm trying to figure out how:
>
>1. How to print to a printer given a specific canvas control
>
>2. Change the zoom factor of my canvas
>
>3. If I want scrollbars for zoomed in pages, must I add scrollbars to my preview form and resize my preview form and its associated canvas to match my zoom magnification level? Or is there a way for VFP to add scrollbars to the canvas itself?
>
>4. Specify a 2-up page display mode (do I need to add an additional canvas for the 2nd page view?)
>
>5. Is there a way to have VFP return to the current page in preview mode after a report is printed? With the default preview form, VFP always exits preview mode after being asked to print.
>
>Any ideas or links to example custom print preview code would be appreciated.
>
>Thank you,
>
>Malcolm
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only