Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Will Set Printer to Sys(1037) Work on All Windows O/S
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00879500
Message ID:
00879891
Vues:
15
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform