INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

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

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

(OP)
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



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

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close