>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.
I agree that if one is familiar with writing DLLs, you're probably right.
>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.
However, Christof's and my Struct component can handle this just fine (admittedly with some help from a small FLL).
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement