开发者

Changing font and color at run time in Crystal Report

开发者_如何学Python

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜