Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Will Set Printer to Sys(1037) Work on All Windows O/S
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00879500
Message ID:
00879891
Views:
13
>>Actually it is 'set printer to sys(1037)'.
>
>
>This isn't correct. SYS(1037) does not return a value, therefore, trying to SET PRINTER TO the return value of SYS(1037) doesn't do anything. All you have to do is:
>
>
>=SYS(1037)
>
>
>This calls the print dialog and once the user selects a print, it changes the VFP Default Printer to the selected printer. However, what it doesn't do is return a value .. therefore .. you don't know if the user pressed the cancel button instead of picking a printer.
>
>Cathy

Cathy,
The application wizard in VFP 7 sp1 generates the 'set printer to sys(1037)' as part of the standard menu system. I am using it in the same way.
I am not currently using 'sys(1037)' in a program, form, etc.
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform