Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't print directly to LPT1
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00037511
Message ID:
00037753
Vues:
27
>Hi guys,
>I am trying to print a text file directly to the LPT1 port
>using the COPY TO command, and I am receiving
>"Invalid path or filename", why?
>I do this:
>COPY FILE MyText.txt TO LPT1
>I know this can be done, because I found it in the KB.
>Thanks in advance.

Luis, I use this technique in our VFP 3.0 app for users who wish to print to dot matrix printers without using the printer driver. It prints much faster without all the fonts. When printing over a network (with captured printer ports) I had no problem, but on machines with local printers I got a similar error message. Try this: COPY FILE myText.txt TO LPT1.DOS - The KB says this should only be a temporary solution, but it was the only one I could find. The 3 letter extension (.DOS) can be anything you want. Hope this works for you too.
Marcus.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform