Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems with com port, FPD2.6 and XP Pro
Message
From
22/06/2004 13:00:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
22/06/2004 12:54:31
Peter Heinicke
Precision Computer Methods Inc
West Chicago, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00916109
Message ID:
00916113
Views:
11
>I have a FPD2.6 program which prints labels out to a dymo SE300 serial labelwriter. It uses a language called ZPL to communicate with this printer over the serial port. The program works fine from Windows 98, but when I try it in windows XP Pro, it hangs when the first character is sent out to the com port. The code fragment is
>
>SET PRINTER OFF
>SET PRINTER TO COM1,9600,N,8,1,S && Need for DOS
>!MODE COM1 BAUD=9600 PARITY=N DATA=8 STOP=1 XON=ON
>SET PRINTER ON
>
>? "^027*^029t^040^029V1"
>
>
>
>The stuff after the ? is ZPL. The progran hangs on the output to the com port with
>"PRINTER NOT READY" retry or cancel.
>
>I am stuck here. I know the cables and hardware and baud rates are correct because I can
>
>COPY FILE.TXT COM1:
>
>from a command window within XP Pro and it prints fine.
>What is wrong/what would you suggest to make it work?
>
>Thanks in advance
>Peter Heinicke

Peter,
Would this work ?
-Write all output to a temp file
Copy tempfile.tmp com1:
erase tempfile.tmp
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform