Skip to Content
author's profile photo Former Member
Former Member

Font size is larger when generating Crystal Reports using CR4E

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?

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • Posted on Dec 01, 2019 at 08:56 AM


    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

    Add comment
    10|10000 characters needed characters exceeded