Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem in directing a report to a specified printer
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01273070
Message ID:
01275764
Views:
8
First I have a form parameter called cprinter
Then I have a button on the form for changing the printer as follows...

I set a variable to the printer name
cp = getprinter()
Then check for the return...
IF !EMPTY(cp)
thisform.cprinter = cp
Else && set to the default printer
thisform.cprinter = SET("Printer",2)
ENDIF
SET PRINTER TO NAME (thisform.cprinter)
thisform.label2.Caption = thisform.cprinter

HTH
Ron Seidl
Independent Developer
VFP

"I'm playing in life's theater in anticipation of a great cast party!"
Previous
Reply
Map
View

Click here to load this message in the networking platform