Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows Default printer
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00498854
Message ID:
00499079
Vues:
23
Hi Arne,

>Can I assume that you want to read the Windows default printer settings, not reading from the printer directly - i.e. the hardware settings?

Right! I do not want to read the printer hardware settings but rather the codes that windows uses to control the different printout appearance like 12 cpi, bold, condensed, etc..

In fact, since I am in DOS, my needs are quite modest. I mostly need the printing codes for 10, 12, 15, 20 cpi and condensed of windows default printer. Obviously I am thinking more and more to have all the reports of this application in VFP. That would solved the problem instantly. But for now it would be very useful to be able to get the codes from windows to my DOS application.

I like your idea of a routine that would get the codes into Foxpro and I will search for that.

And maybe I could make it myself, If I only knew where the codes are hiden. Anyone knows?

Réal

>>Hi,
>>
>>Anyone knows if it is possible to read the printing codes (12 cpi, condensed, etc..) of the default printer with a Foxpro 2.x program running in DOS under Windows?
>>
>
>Can I assume that you want to read the Windows default printer settings, not reading from the printer directly - i.e. the hardware settings? You cannot do this directly from 2.x because there is no hook to the windows API BUT, you could write a small routine (or find one?) to read the windows registry in another language and execute it using the !/RUN command. The program could return the values you want from the Windows registry which you could then read from 2.x. You probably do not want to write this in VFP - although you could - because of the large runtime module overhead. C++ or Java would be preferable. Not much but hope it helps.
>
>-Arne
Réal Philippon
www.ultra.ca
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform