Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change FoxPro default printer
Message
From
19/04/2017 10:25:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
How to change FoxPro default printer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Application:
Desktop
Miscellaneous
Thread ID:
01650416
Message ID:
01650416
Views:
45
Iäm looking for changing default printer for report printing so that user selected printer name can logged

I tried code from http://fox.wikis.com/wc.dll?Wiki~Win32API~Wiki
? "Printer ", SET("Printer",2)
LOCAL loComDialog as mscomdlg.commondialog
loComDialog = newobject( "mscomdlg.commondialog" )
?  loComDialog.ShowPrinter()
? locomdialog.PrinterDefault
? "Printer ", SET("Printer",2)
but it does not output printer name selected from printer dialog.
There is no PrinterName property in loComDialog.

How to get printer name which is selected by user in ShowPrinter dialog ?
Andrus
Next
Reply
Map
View

Click here to load this message in the networking platform