Discussion Locked

Serial Printing

0 helpful
13 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
OK...heres the scoop. I have an application that is hard coded to print directly to com1. I need to find documentation that proves to upper management that if I create a serial printer in windows and direct the print to com1 it will not print because of the hard coded program. Any help would be appreciated.

13 replies

by ds9

Gee, I don't understand.?? A serial printer attached to COM1 should work just fine, unless you did not tell us that you are already using com1 for something else.??

If your using COM1 for a internal Modem for example, then you can move it to COM3and then use COM1 for your printer.

Hope this helps, or esle maybe you can give more info as to WHY COM1 would not be available for use by your serial printer.

Regards
George

by shanghai sam

What version of windows?
Any version of NT will prevent an application from directly accessing a local hardware device such as com1.
All hardware access IS HANDLED BY THE HAL
or hardware access layer.

Win9x, not so, you can print directly tocom1 with any flavor of win9x...

Are you on a network? NT or Netware? the answers are different if using a network captured port...

Also, if printing locally, you can define a dummy printer, as generic text, assign it to com1, but then force all output directed for com 1 into a text file

it is done like this at the dos prompt:

mode com1: > prt.txt /a

Place that line in a batch file which may also be used to start this app, and then print this txt file at your leisure...
location and name of this text file are your choice....

(the /a forces an append, meaning each print job sent is added to the end of the file)

Good luck....

by software architect

ok..since it deleted the user. It seems the only way I can post comments is to rate "did not help". Let me see if I can explain this better. Application is hard coded to go to com1 port. Program say print to com1 and bypass any que or buffer that is available. Doesn't matter if it is windows or dos created. what they want is to stop printer while printing say...1000 labels, print a special label and then resume printing where the 1000 labels left off. All of this is to be accomplished without a buffer or any kind of print que. Telling them it can't be done is no good. I must provide documentation that it can't be done. Not an easy task. Any help to find documentation would be helpful. There are no drivers for this printer, and the company is out of business. Direct print to printer not supported by nt 4.0 You gotta love this job.

by buffalodan

I had actually posted the above answer, however, tech republic had logged me out because I spent too much time digging thru my own cobwebs to figure out the old Dos Mode command....

I hope my info helps you do your job, and look good to the big guys

dan

by bs8477

Dont ever forget that without the wonderful 16550 uarts most of the new printers wouldnt like your task very much. hope this helps

by grump

Here is my shot..

Comm 1: IO address 3f8 and IRQ 4

If this is the hard coded case and you set up the printer on the com 1 port. Try to print direct to port and not allow windows to utilize print manager.. Be sure that the COM1 addressing in device manager it the true I/O address of the UART in BIOS.

Of course if this works then you will still have to deal with upper management..

Grump

This discussion is closed to new replies.