>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
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