Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to print to a Serial Printer (COMn) under XP?

Status
Not open for further replies.

mbinfo

Programmer
Aug 21, 2002
27
BR
I have an application running well under W98, with serial printers. The approach used is SET PRINTER TO COMn and
then print all data using Qout() and QQout().

When one of my customers moved to XP its serial printer is working no more.

Under DOS, the copy command does its job and the printer works, but from inside the program nothing works.

I tried - as suggested by other people here - to work with a file and copy the file to the COM port, but the result is the same.
I tried even to copy the file using COM_OPEN() COM_SEND, but now I get a divide by zero R6003 error before anythig else in the program runs. Just comment the COM_OPEN() and COM_SEND, and the program returns to life...

Any tip, any help?

Thank you in advance,


Ulisses Bruder Junior
MBINFO



 
What i have done in this situation is write the info to a file suing "set alterate on" etc. Then invoke dos with "notepad <file> /p"

This assumes its the default printer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top