How to make a RichText grow?

Posted by: kevin.henderson on 5 August 2022, 12:15 am EST

  • Posted 5 August 2022, 12:15 am EST

    I’m trying to make a RickText element grow (vertically in this case) based on the contents of the container, but CanGrow doesn’t seem to have any effect. Is there a way to make it so this container stretches when the content overflows? Alternatively, can it be cut off with ellipses?

    
    {"Name":"Report","Width":"8.5in","Layers":[{"Name":"default"}],"CustomProperties":[{"Name":"DisplayType","Value":"Page"},{"Name":"SizeType","Value":"Default"},{"Name":"PaperOrientation","Value":"Portrait"}],"Page":{"PageWidth":"8.5in","PageHeight":"11in","RightMargin":"1in","LeftMargin":"1in","TopMargin":"1in","BottomMargin":"1in","Columns":1,"ColumnSpacing":"0in"},"FixedPage":{"Pages":[{"ReportItems":[{"Type":"richtext","Name":"RichText1","CanGrow":true,"Style":{"FontSize":"12pt","PaddingLeft":"2pt","PaddingRight":"2pt","PaddingTop":"2pt","PaddingBottom":"2pt","Color":"White","BackgroundColor":"#114b7a"},"MarkupType":"HTML","Value":"<span style=\"font-weight:bold\">Product:</span> This is the really long name of my product","Width":"3.3542in","Height":"0.2292in"}]}]}}
    
    
  • Posted 5 August 2022, 12:22 am EST - Updated 2 October 2022, 11:05 pm EST

    Sorry, forgot to add my screenshot.

  • Posted 7 August 2022, 7:53 pm EST

    Hello,

    The attached report is a Fixed Layout Report in which individual report items do not grow at runtime. You could use a Continuous Page Layout instead. https://www.grapecity.com/activereportsjs/docs/ReportAuthorGuide/report-configuration/Report-Layouts

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels