Vahid Ghadiri
Vahid Ghadiri

Reputation: 4076

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

Upvotes: 0

Views: 3511

Answers (2)

paulmelnikow
paulmelnikow

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

Jeroen
Jeroen

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

Related Questions