Board index » delphi » Printing to a stupid printer in Delphi and WIN95!! HELP!!!

Printing to a stupid printer in Delphi and WIN95!! HELP!!!

Hi,

this is the 3rd time I'll put my problem on the hotspot, please help!
I have a WIN95, I have a stupid printer (7dot matrix => used as a
kitchenprinter), I wrote a program in Delphi (a huge program), I'll wanna
print. I CAN print, but (#?!#&#!), the printer alway sends me xx white
lines (also known as Line Feeds, I don't want these). I uses
BeginDoc;TextOut(...);EndDoc. Can I change the length of a printer page?
Do I use a wrong printer driver?? A good fellow mailed me once with the
idea to write directly to a dos device (eg PRN, LPT1, ...). Does somebody
know how to do that?

TIA.

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Delphi programming and CD recording!!                           =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                 ...and may the source be with you!

 

Re:Printing to a stupid printer in Delphi and WIN95!! HELP!!!


Hi,

this is the 3rd time I'll put my problem on the hotspot, please help!
I have a WIN95, I have a stupid printer (7dot matrix => used as a
kitchenprinter), I wrote a program in Delphi (a huge program), I'll wanna
print. I CAN print, but (#?!#&#!), the printer alway sends me xx white
lines (also known as Line Feeds, I don't want these). I uses
BeginDoc;TextOut(...);EndDoc. Can I change the length of a printer page?
Do I use a wrong printer driver?? A good fellow mailed me once with the
idea to write directly to a dos device (eg PRN, LPT1, ...). Does somebody
know how to do that?

TIA.

--

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
= Delphi programming and CD recording!!                           =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                 ...and may the source be with you!

Re:Printing to a stupid printer in Delphi and WIN95!! HELP!!!


I think what you are experiencing is too much white space between lines.  
If this is the problem then I have the same one.  I have not corrected it
but I know what needs to be done.  

An HP4 printer can print at 600 DPI or 300 DPI...
your printer can hope to do 150 DPI or less....
I believe Delphi defaults to 300 DPI...
REMEMBER you are drawing a BITMAP in memory....
if you want to print properly figure out a way to scale your image to
        fit the printers page...
I have not had the time to think about it

My 2cents worth

Brian R. Moga

In article <47ebos$...@brahms.tfi.be>, b...@unicall.be says...

Quote

>Hi,

>this is the 3rd time I'll put my problem on the hotspot, please help!
>I have a WIN95, I have a stupid printer (7dot matrix => used as a
>kitchenprinter), I wrote a program in Delphi (a huge program), I'll
wanna
>print. I CAN print, but (#?!#&#!), the printer alway sends me xx white
>lines (also known as Line Feeds, I don't want these). I uses
>BeginDoc;TextOut(...);EndDoc. Can I change the length of a printer page?
>Do I use a wrong printer driver?? A good fellow mailed me once with the
>idea to write directly to a dos device (eg PRN, LPT1, ...). Does
somebody
>know how to do that?

>TIA.

>--

>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>= Delphi programming and CD recording!!                           =
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>                                 ...and may the source be with you!

Re:Printing to a stupid printer in Delphi and WIN95!! HELP!!!


I seem to remember that for some printers you set a dipswitch to
determine how Carriage Returns are treated: as plain CR _or_ as a CR
followed by a Line Feed.  If you choose the latter and the printing
program sends its own LFs, you'll get an empty line between each pair of
printed lines... Check your printer manual, then check the dips!

HTH

Marcel Feenstra

Quote
Brian Moga (mogab...@nando.net) wrote:

: I think what you are experiencing is too much white space between lines.  
: If this is the problem then I have the same one.  I have not corrected it
: but I know what needs to be done.  

: An HP4 printer can print at 600 DPI or 300 DPI...
: your printer can hope to do 150 DPI or less....
: I believe Delphi defaults to 300 DPI...
: REMEMBER you are drawing a BITMAP in memory....
: if you want to print properly figure out a way to scale your image to
:       fit the printers page...
: I have not had the time to think about it

: My 2cents worth

: Brian R. Moga

: In article <47ebos$...@brahms.tfi.be>, b...@unicall.be says...
: >
: >Hi,
: >
: >this is the 3rd time I'll put my problem on the hotspot, please help!
: >I have a WIN95, I have a stupid printer (7dot matrix => used as a
: >kitchenprinter), I wrote a program in Delphi (a huge program), I'll
: wanna
: >print. I CAN print, but (#?!#&#!), the printer alway sends me xx white
: >lines (also known as Line Feeds, I don't want these). I uses
: >BeginDoc;TextOut(...);EndDoc. Can I change the length of a printer page?
: >Do I use a wrong printer driver?? A good fellow mailed me once with the
: >idea to write directly to a dos device (eg PRN, LPT1, ...). Does
: somebody
: >know how to do that?
: >
: >TIA.
: >
: >--
: >
: >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
: >= Delphi programming and CD recording!!                           =
: >=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
: >                                 ...and may the source be with you!
: >
: >

Other Threads