Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print Preview
Message
From
31/07/1999 12:28:40
 
 
To
30/07/1999 15:04:32
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00248326
Message ID:
00248551
Views:
10
>Hi All,
>
>I would like to allow my users to see a Print Preview similar to the Print Preview available when running VFP 6.0 interactively, when executing my application from a .prg or an .exe. Is there a way - not too involved?? TIA.
>
>Regards,
>
>Paige

Yesterday thread #248352 addressed a more robust version of this question that I found VERY helpfull. Basicly, this person went to the next step. In programming reports ususally most programmers sooner or later use a syntax similar to:

REPORT FORM XXXXX PREVIEW

This brings up the VFP preview screen with the report and if the user wants to they can print a copy by clicking on the print button. Great. But, what if the user wants to print to something other than the default printer or has a color printer and wants to save ink by setting it to print gray scale ....

Eneter the above thread. Fred Taylor responded with the following syntax (I am paraphrasing here):

REPORT FORM XXX TO PRINTER PROMPT PREVIEW

( The code above is what worked for me in my screen. It differs slightly from the actual code listed in the thread)

This method brings up the preview screen as before. But, if the user clicks on the print button the printer selection/setup window is displayed allowing control of the destination and the style of output. The best of all worlds. I had been programming for quite a while and it never occured to me that the commands could be combined. Very pleasant suprise!

Try it I think you and your users will like it.

Terry
It is impossible to make programs idiot proof. Idiots are too cleaver.

MCP( Tcp/Ip )
Previous
Reply
Map
View

Click here to load this message in the networking platform