Why is it that if I draw a line in MS Word and make it gray, it prints reasonably well in grayscale on a mono laser printer, but if I have a report with a gray TppLine in it the line does not print at all on a mono printer?
As always, make sure you are using the latest printer driver. Can you test on a different printer model/manufacturer?
Undoubtedly, there are different Win API calls being made to the printer driver by Delphi code and the code which MS Word is written in (C/C++).
Try using Delphi's TPrinter object as a test, to print a line on the printer canvas in a simple app. We have our own TppPrinter object, which is different than TPrinter, as it has its own drawing routines, but we are relying on Delphi to draw on the printer canvas.
Drawing a line directly on the printer canvas produces exactly the same result so I wonder how MS Word draws lines - as bitmaps perhaps?
Anyway, it's not a serious problem. But I'd like my lines to come out gray on printers that can do it, and black if they can't; hence my previous posting - I need to find the printer's bits/pixel and set the color of the TppLines accordingly.
Dave.
On Wed, 5 Feb 2003 10:13:38 -0600, support@digital-metaphors.com (Jim
Comments
on a different printer model/manufacturer?
Undoubtedly, there are different Win API calls being made to the printer
driver by Delphi code and the code which MS Word is written in (C/C++).
Try using Delphi's TPrinter object as a test, to print a line on the printer
canvas in a simple app. We have our own TppPrinter object, which is
different than TPrinter, as it has its own drawing routines, but we are
relying on Delphi to draw on the printer canvas.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
Drawing a line directly on the printer canvas produces exactly the same
result so I wonder how MS Word draws lines - as bitmaps perhaps?
Anyway, it's not a serious problem. But I'd like my lines to come out gray
on printers that can do it, and black if they can't; hence my previous
posting - I need to find the printer's bits/pixel and set the color of the
TppLines accordingly.
Dave.
On Wed, 5 Feb 2003 10:13:38 -0600, support@digital-metaphors.com (Jim