Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to Com Ports
Message
From
26/02/2002 15:26:25
Sid Meyers
Omegaware Consulting, Inc.
Minnesota, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Printing to Com Ports
Miscellaneous
Thread ID:
00625411
Message ID:
00625411
Views:
46
I am looking for some help concerning the ability to copy files to the serial port.

The code works correctly in Windows 2000. The code also works in Windows 95 but upon completion I receive an error msg "can not create file". The line of code I am executing is

SET PRINTER ON
COPY FILE c:\filename.txt TO COM1

Even though the output is directed to the printer, I still receive the error msg. in Windows 95. I know the error is a direct result of copying a file to COM1.

If I use the following code in windows, the text file makes it to the windows spooler but then just sits there. No error msg.

SET PRINTER ON
SET PRINTER TO COM1
COPY FILE c:\filename.txt TO COM1

If I execute a WINBATCH exe file which shells out to DOS and sends keystrokes to the SCREEN, I do not receive the error msg. But there must be a way to do this in WINDOWS 95 environment.

Is there a simple solution to the error msg. I am receiving?

I know there are other solutions which I have implemented using windows based printing, but I am trying to use an old Zebra 105 printer which prints at 150 labels per minute compared to a DYMO 330 Turbo Label printer which only spits lablels out at 30 labels per minute. And my customer is printing out thousands of labels per day.

Thanks,

Sid
Next
Reply
Map
View

Click here to load this message in the networking platform