Changing font and color at run time in Crystal Report
is there any way to change font size, font color etc properties at run time in crystal report.
any help would be appreciated
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.
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.
精彩评论