Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I can't print directly to LPT1
Message
De
24/06/1997 19:02:48
 
 
À
23/06/1997 18:06:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00037511
Message ID:
00037628
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


You can call a batch file that prints the file passed as a parameter such as:

@ECHO OFF
COPY %1 LPT1


Also to keep it from showing the DOS window, you can make a pif file that runs in background that calls the batch file.

Then in VFP, you can call the pif file using the /N2 option like:

!/N2 prntfile.pif test.dat
__________________________________________________
Mesa Vista Software (david@mesa-vista.com)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform