How to do styling with Sage.Accounting.Reporting?

SUGGESTED

Hi all,

on one of my report, I need to do get the column header and its value dynamically. So now, I need to generate the header by coding. But now the header is plain and default font. I would like to do styling on the header. How to do font styling with the reporting library Sage.Accounting.Reporting?

Thank you.

Parents Reply
  • 0 in reply to Chris Burke

    Hi Chris, yes that is correct. Because i am getting the price band as column header in the code. The price bands could be 1,5 or 10. So i cannot have fixed column on the report layout. Getting its header & data is successfully done. But now the header is plain. Would like to make the font bold and underline.

Children
  • 0 in reply to murni

    OK. Well I've got no idea how you're going about this or what you're actually doing in code (unless you'd like to post an example), but the element you're adding should have a TextStyle property - which will take an instance of Sage.Reporting.Engine.Model.TextStyle.

    Is this the best solution? There's ways to dynamically pass data to reports without having to modify the structure of the document at runtime.