Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crystal Reports Cutting Off Text in PDF

I found this post on Crystal Reports Cutting Off Text in PDF, but it didn't solve my problem.

I have a Crystal Report that contains a field within a text object (to control line spacing) and has "can grow" selected. When I export the Crystal Report to a PDF there are instances when the text is cut off.

enter image description here

In this example the text is being cut off on the right side, but in some cases, when the text consists of many lines, the bottom part of the last line will be partially cut off.

I am using Crystal Reports that is bundled with Visual Studio 2008. The text area has "can grow" checked, the font is set to Helvetica LT Condensed, bold 14, and the line spacing is set to 0.75 times normal.

Anyone have any thoughts on how can I fix this?

like image 576
scumdogg Avatar asked Mar 05 '10 22:03

scumdogg


People also ask

How do I change a Crystal Report to a PDF?

Run your Crystal Report Project. Select the Export Report button at the top Left Corner. From the File Format Drop drown select appropriate format. Click on Export.

How do I format a Crystal Report?

The Format Editor appears when: You click any of the buttons on the Fields tab of the Options dialog box. You right-click a report field and choose Format Field from the shortcut menu. You have a text object selected and you choose Format Text, Border and Colors, Font, or Paragraph Formatting from the Format menu.

Can I use Crystal Report in Python?

Overall, the RDC works just as well in Python as it does in VB.


1 Answers

I have run into this as well - Crystal seems a little confused about where the text box borders are. I suggest adding a small right indent to the text box (right click on the text box, select 'Format Object', select the 'Paragraph' tab, and enter small numbers (maybe .2 or so) into the Right text box. This should help with the right margin.

As for the bottom cut-off, there is no margin that you can add. Can you add a line break to the end of your text as it comes from the db? Or, you could try a formula field to add the line break:

{table_name.field_name} + chr(13) + chr(10)
like image 148
Ray Avatar answered Sep 28 '22 08:09

Ray