Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Landscape Mode without using the Page Setup Dial
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00155046
Message ID:
00157331
Vues:
28
>>Barbara
>>
>>Yes, I use the ??? command with HP printers because I have been able to obtain the proper control codes. If works fine. However, I was also wondering whether it can be done through the Windows API. If it could then I could set any printer even if I did not know the control codes.
>>
>>Thanks
>>
>Hi Simon,
>
>Yeah, there's an API function to do it (SetPrinter() with a PRINTER_INFO_2 structure), but I'd say it'd be easier to write a DLL to do it rather than trying in VFP. The problem is that the structure contains a pointer to a DEVMODE structure, as well as several strings. Given VFP's memory management, it might not be possible to do it in pure VFP code.

Do you know if anyone has created such a DLL or has code that can handle the printer orientation?

Thanks
Simon
Simon White
dCipher Computing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform