Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I can't print directly to LPT1
Message
From
24/06/1997 19:02:48
 
 
To
23/06/1997 18:06:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00037511
Message ID:
00037628
Views:
29
>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform