Print Image -Quality
Hi,
I am printing a invoice report and therefor want to print a logo on it. But
the quality of the logo is very poor. I already tried playing around with
settings like direct printing. Especially if the logo has to be resized it
gets worse.
thanks for your hints,
Matthias
I am printing a invoice report and therefor want to print a logo on it. But
the quality of the logo is very poor. I already tried playing around with
settings like direct printing. Especially if the logo has to be resized it
gets worse.
thanks for your hints,
Matthias
This discussion has been closed.
Comments
I think it's Windows Metafile, instead of using JPEG, or BMP or whatever you
are using.
Regards
Carlson W. Filho
does the image component automatically size down or do you have to stretch
the image? Using stretching the quality even gets worse. My idea was to
generate an image much larger, but with more dpis (eg 300,600). Apparently
the image component doesn't recognize the dpi setting because without
stretching the image is much too big.
I think there should be a way to deal with this with a professional tool
like reportbuilder.
Whats the thing with the WMF? Does this really affect quality? How could
that be?
thanks for your help,
Matt
The resolution of the screen is typically 96 pixels per inch, however a
printer typically has a resolution of 600 to 1200 ppi or even higher. That
is why creating an image with a very high resolution will work better for
the printer.
WMF files store windows graphics commands rather than pixels. Thus when
rendered to the printer, the graphics commands are drawn to the printer
canvas directly rather than being scaled up to the higher resolution. WMF
work very well for graphics that contain text (i.e. fonts) and lines. For
example, the TeeChart component can render to the printer using a WMF.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
but I create an image with a resolution more than 96 dpi the dpi doesn't
affect to the reportbuilder. The image simply gets bigger on the report (as
long as Autosize is turned on).
Thanks for the hint with wmf. I'll try it today.
thanks,
Matt
You will want to turn AutoSize off so that the image is shrunk when it is
displayed to screen. It is when the image is rendered to the printer that
the additional resolution is needed.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
well, I turend autosize off. If I also turn off stretch then the image is
too big on the screen. And I assume that stretching the image has some bad
impact on the quality.
Thanks for your help,
Matt
I am stucked to the problem. I turned autosize off and sized the
component manually to the size I want it to be on the paper which is in
pixels 279x62. The image is 689x183, but a resolution of 294.
Strech: False,
AutoSize: False
Center: True
MaintainAspectRatio:False
But the image is displayed with its full width if I do a preview - not
scaled down because of the resolution.
Thanks for any help!
kindly regards,
Matt
Try setting TppImage.Stretch to True and then the image will be scaled to
fit inside the border. I assume you are still talking about screen pixels
here. Remember a pixel is not an absolute unit of measure. On the screen a
Pixel is typically 1/96 inch, or if the user has large fonts turned on, then
a Pixel is 1/120 inch. On a typical laserjet printer a Pixel is 1/600 inch.
On a higher quality printer a Pixel might be 1/1200 inch, etc.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
well, I now tried the stretch property and it seems that is working on
the print out. I just don't know exactly how RB handles the stretching
because its working on the paper (obviously no stretching is needed
because of the 1/600 inch). And in the screen preview the stretching is
needed because of 1/96 inch. Does RB make a difference between
displaying a graphic on the screen and printing?
One mystery still remains: It works on a HP Laserjet 1300 but on a HP
4100 I'll get rastered points in the background although I am also using
the best quality?!?
thanks for your help!
Matt
1. Yes there is separate logic for rendering to the screen and to the
printer. ReportBuilder relies upon Windows API calls to do the low level
work.
2. You can try downloading the latest printer driver from the manufacturers
web site. Also try setting Image.Transparent to False.
--
Nard Moseley
Digital Metaphors Corporation
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com