Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom print preview form questions
Message
De
13/07/2005 15:01:17
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
 
 
À
13/07/2005 14:08:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01032329
Message ID:
01032348
Vues:
17
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform