Reputation: 4076
is there any way to change font size, font color etc properties at run time in crystal report.
any help would be appreciated
Upvotes: 0
Views: 3511
Reputation: 17218
Rather than manipulate the formatting programmatically, you can use formulas on the text object to calculate the font family, size, color, etc., or use Highlighting Expert.
Upvotes: 0
Reputation: 4023
CrystalDecisions.CrystalReports.Engine.ReportDocument rpt;
((CrystalDecisions.CrystalReports.Engine.TextObject)rpt.ReportDefinition.ReportObjects["fieldname here"]).Font; // access font here.
I think this should give you enough information to do what you want. Just fiddle around with it.
Upvotes: 1