Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printer Name
Message
 
To
02/06/2004 17:45:31
John Tomblin
Service Station Systems, Inc.
San Jose, California, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00909411
Message ID:
00909615
Views:
14
John,

The getrpinter() function will show a list of the named network printers that are installed in the users machine. Try it from the command box with cp = getprinter()

I have a button on a form for printing that selects the printer. It has the following code...
cp = getprinter()
IF !EMPTY(cp)
	thisform.cprinter = cp
ELse	&& set to the default printer
	thisform.cprinter = SET("Printer",2)
ENDIF
SET PRINTER TO NAME (thisform.cprinter)
The selected printer shows in a TextBox that displays the value of cp

HTH
Ron Seidl
Independent Developer
VFP

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

Click here to load this message in the networking platform