Text clipping
I'm getting the left and right hand edges of a label component clipped.
Can somebody try this please.
Start a new report.
Add a TppLabel component to the detail band. Set the Caption to ABC,
the Font to Times New Roman, Size 36, Bold, Italic. Increase the size
of the band accomodate the label.
Preview and print the report on the default printer.
I get part of the serif on the extreme left hand of the A cut off. The
same happens to a slightly lesser extent at the right hand side of the
C. Doesn't look too good on a letterhead.
Is this a problem with my printer driver or something else? I can
solve the problem at the right side by changing autosize property to
false and increasing the width of the label, but what about the left
hand side?
Thanks
Kit Jackson
Can somebody try this please.
Start a new report.
Add a TppLabel component to the detail band. Set the Caption to ABC,
the Font to Times New Roman, Size 36, Bold, Italic. Increase the size
of the band accomodate the label.
Preview and print the report on the default printer.
I get part of the serif on the extreme left hand of the A cut off. The
same happens to a slightly lesser extent at the right hand side of the
C. Doesn't look too good on a letterhead.
Is this a problem with my printer driver or something else? I can
solve the problem at the right side by changing autosize property to
false and increasing the width of the label, but what about the left
hand side?
Thanks
Kit Jackson
This discussion has been closed.
Comments
This is not a known issue with ReportBuilder. As a test, try connecting to
a different printer and see if the results change. Is the right and left
side being clipped in the preview as well as on paper when you print? Try
updating your current printer driver and see if that helps as well.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Zoran.
Both printers I have access to here give the same result, a Brother
HL-1430 and a HP deskjet 3325. Everything looks fine in the preview
though.
Do you know if this is a side affect of Bolding or Italicising the
text. If some characters go right to the edge of the rectangle in
which they are drawn is it possible the the effect of bolding or
italicising the font would cause part of the character to be drawn
outside it's original rectangle?
How are you doing the final drawing on the printer? Do you use the
DrawText or DrawTextEx API?
Zoran's workaround does the trick as does changing the text alignment
from left justified to centred.
Kit Jackson
I have tested this on three printers, a HP LaserJet 5, a NEC SuperScript
1800 and a HP DeskJet 995c, and have not been able to recreate the issue you
are having. If you would like to see where ReportBuilder makes the DrawText
API calls, please see the ppPrnDev.pas file in the TppPrinterDevice class.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com