|
From: Per W. <pw...@ia...> - 2003-06-10 10:26:02
|
It is possible to open lpt1 or prn as a file also. However, depending on what os, driver, printer you have, you might have to fiddle iin the printer settings to make sure that the printer is avavailable in console windows too. Some combinations of OS and printer drivers might not even support text output from a console. /Per W On Mon, 9 Jun 2003, CARLSON, JAY MM1 wrote: > After doing many hours of web surfing. I found the best option for printing > (from a console) is to write everything to a file, then open the file under > notepad, or wordpad and print from there. I guess the reason is GUI's are > so popular (ie Windows), printers need drivers and most are only supplied > with window drivers now, (and linux if your lucky!) It may be possible to > redirect the entire file output to the printer from dos using something like > "c:\filename.exe >> lpt1" or something like that. If anyone has the exact > details that would be great. I also found some information on using inp > outp or inport outport for communicating through various ports. In this way > the printer might be fed some data. But there are just too many unknowns > for me to take a stab at. > > Jay > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The best > thread debugger on the planet. Designed with thread debugging features > you've never dreamed of, try TotalView 6 free at www.etnus.com. > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |