Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Printer
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Miscellaneous
Thread ID:
00788571
Message ID:
00788797
Views:
46
To let the user select the printer, you need the PROMPT clause as follows:
REPORT FORM "c:\questpdmreports\reports\sales margin analysis.frx" NOEJECT NOCONSOLE TO PRINTER PROMPT
If you want to preview the report, and then have the user click the printer button and get prompted, run the report as follows:
REPORT FORM "c:\questpdmreports\reports\sales margin analysis.frx" NOEJECT NOCONSOLE TO PRINTER PROMPT PREVIEW
Cathy


>Morning,
>
>I have report which is run when the user clicks the button. The problem I have got is that I had to set a default printer in page setup in the report designer. This cause me a problem because within the on-click event I want the user to select which printer they would like to print the report to.
>
>I have included the following syntax:
>
>SET PRINTER TO NAME GETPRINTER()
>REPORT FORM "c:\questpdmreports\;
>reports\sales margin analysis.frx" NOEJECT NOCONSOLE TO PRINTER
>
>When I run the program and click the button I get the dialog box for select printer but my print still comes out on the printer that was set within the page setup in report designer. Is there anyway I can change this so that it will print the report to the printer that the user selects?
>
>Many thanks
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform