Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to change FoxPro default printer
Message
 
To
19/04/2017 10:25:50
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2016
Application:
Desktop
Miscellaneous
Thread ID:
01650416
Message ID:
01650425
Views:
46
>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 ?

Now you realize why I wrote the library I wrote.
Before you try this:
sys(1500,'_mfi_sysprint','_mfile')

You have the same problem. No printer name returned.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform