Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing printers programatically
Message
 
À
01/10/1996 03:14:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00008920
Message ID:
00008942
Vues:
29
>>>I have an application where the user selects which reports they want and then select an output option: 1. Printer, 2. Screen, 3. File, 4. Fax. Selecting the option is one thing. Programming it is another. I had this all working fine under previous versions of DOS and Windows and previous versions of FoxPro. Now I have clients on VFP and Win95 or VFP and WinNT 4.0 and things aren't working anymore. The problem is that printer settings used to be stored in the WINI.INI file and where easily manipulated with a few freeware utilities. With 95 & NT, these routines don't work any more. Is there an easy way around this?
>
>>Look at the GETPRINTER() and releated functions.
>>
>also look at SET PRINTER TO NAME (but this probably goes under "related commands")
>
>another thing you should know is that win95 and NT4.0 use registry files
>for the printers - however API calles that write the WIN.INI file
>should affect the registry (according to the docs)
>In the worst case you can alwys use the set of API calls
>that work directly with the registry - but IMHO SET PRINTER TO NAME
>should be enough

Arnon

IMHO I would stick to VFP high level functions as much as possible.

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform