Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing directly to LPT1?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00026626
Message ID:
00026744
Vues:
29
>I have reports that are saved to a binary memo field. I want to send those reports directly to the printer, bypassing the windows print drivers.
>
>I know that VFP 3.0 can do this, its available in the system menu under "Print", but I can't find a way to do it with code. In order to print the saved reports, presently I am copying the memo to a file, and using the dos copy command. "run copy filename.txt lpt1". This meathod brings up a dos window and is not an acceptable way to print the reports.
>
>Can anyone help?
>
>Thanks Harvey

I believe you can use the VFP 'COPY FILE' command to do this, just make sure that safety is set OFF because LPT1 will be seen as a File Exists, overwrite condition. I could be wrong, but it seems like I tried this once and was successful.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform