Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't print directly to LPT1
Message
De
24/06/1997 09:02:56
 
 
À
23/06/1997 18:06:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00037511
Message ID:
00037566
Vues:
33
>if it is VFP than no it can't be done - it is a known bug and can be found
>in the KB as well
>
>Arnon
>
>>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.
>>
>>
It can be done and I use COPY FILE ... TO Lpt1 in one of my production systems.
The problem might be originated from the fact that particular workstation can have printer (network) set on another printer name (not Lpt1 but something like \\NY14\HP4). So you should be careful and check printer setting first, than try COPY command from DOS window, then try COPY command from VFP Command window and then implement it into your code. BTW, you can use APRINTER() to retrieve valid printer name.
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform