cancel
Showing results for 
Search instead for 
Did you mean: 

Font size is larger when generating Crystal Reports using CR4E

Former Member
0 Kudos

I have some crystal reports developed in Crystal Reports XI R2. When generating the reports from CR4E2.0, the font size seems to be bit larger. So some of the filed values displayed partially. Is there any work around available to overcome this issue?

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi

After all these years, and numerous tries, seem like there is no other solution than to update the font size programatically.

This is what i did in my java program to make the Font Size same as that generated via Crystal Reports

1. Get all TextObjects and FieldObjects
2. Get the FontColor from the TextObject/FieldObject
3. Get the IFont using FontColor.getIFont()
4. get the font size using IFont.getSize()
5. decrease the font size by 0.2
6. set the new font size using IFont.setSize(newFontsize)
7. modify the report object using repClientDoc.getReportDefController().getReportObjectController().modify function to modify the report object

Thats It. Worked for me quite well. 🙂

Thanks And Regards

Susobh Sugathan