Dos Based Printing



Clay Powell
07-09-2005, 10:31 PM
I have been trying to get some of my dos based programs to be able to print
using windows xp. so far I have not been able to make it happen. I have
tried mapping the printer to my lpt port using the net use command and also
enabled printer pooling and neither has helped. before, when i attempted to
rpint from a dos based program the program froze and i ended up having to
kill it through the device manager. now since i have mapped the lpt1 port
using the net use feature, it will try to print, and the lexmark printer
progress bar shows up and instantly goes from zero percent to one hundred
percent and it says printing started and printing completed but nothing
actually prints. any suggestions would be greatly appreciated. I have
searched this group for dos printing and it seems every reply to anyones
quetion is always a link to bruce sanderson's article on dos printing. I
have already viewed that page and it has not helped, just wanting to get that
out of the way to eliminate an unecessary and already attempted resource.
thank you for your time and efforts

Davide Guolo
07-09-2005, 10:31 PM
Dear Mr. Clay Powell,

> I have
> searched this group for dos printing and it seems every reply to anyones
> quetion is always a link to bruce sanderson's article on dos printing. I
> have already viewed that page and it has not helped, just wanting to get
that
> out of the way to eliminate an unecessary and already attempted resource.

your printer may be a Windows-only (AKA GDI) one.
If this is your case, then there's no way for you print from DOS simply by
redirecting the stream (by NET USE, pooling or whatever else), because the
printer cannot understand a simple DOS ascii stream, but it needs a raw
stream created by the Windows driver.

You may want to have a look at Printfil, which enables character-based
applications (incl. DOS) printing to Windows printers (incl. GDI).
More info and a free trial is available for download at
http://www.printfil.com

Kind regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------

Byte
07-09-2005, 10:31 PM
Take a look here..........
Print From DOS with WindowsXP
http://members.shaw.ca/bsanders/printfromdos.htm

--
Some days you're the windshield,
some days you're the bug.


"Clay Powell" wrote:

> I have been trying to get some of my dos based programs to be able to print
> using windows xp. so far I have not been able to make it happen. I have
> tried mapping the printer to my lpt port using the net use command and also
> enabled printer pooling and neither has helped. before, when i attempted to
> rpint from a dos based program the program froze and i ended up having to
> kill it through the device manager. now since i have mapped the lpt1 port
> using the net use feature, it will try to print, and the lexmark printer
> progress bar shows up and instantly goes from zero percent to one hundred
> percent and it says printing started and printing completed but nothing
> actually prints. any suggestions would be greatly appreciated. I have
> searched this group for dos printing and it seems every reply to anyones
> quetion is always a link to bruce sanderson's article on dos printing. I
> have already viewed that page and it has not helped, just wanting to get that
> out of the way to eliminate an unecessary and already attempted resource.
> thank you for your time and efforts

Stan Brown
07-09-2005, 10:31 PM
On Thu, 30 Jun 2005 08:36:17 -0700, "Byte"
<Byte@discussions.microsoft.com> wrote:

>"Clay Powell" wrote:
>
>> I have
>> searched this group for dos printing and it seems every reply to anyones
>> quetion is always a link to bruce sanderson's article on dos printing. I
>> have already viewed that page and it has not helped,

>Take a look here..........
>Print From DOS with WindowsXP
>http://members.shaw.ca/bsanders/printfromdos.htm

Ahem. :-)




--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"My theory was a perfectly good one. The facts were misleading."
-- /The Lady Vanishes/ (1938)


Dos Based Printing