Set crystal report textobject bold at runtime using C# -
i'm updating text objects in crystal report in c# code this,
reportdocument rptdoc = new reportdocument(); rptdoc.load(environment.currentdirectory + @"\test.rpt"); textobject txttest = (textobject)rptdoc.reportdefinition.reportobjects["txttest"]; txttest.text = "test";
now want bold text in "txttest" text object.
i'm looking this,
txttest.font.bold = true;
but unfortunately read-only.
finally, have found solution.
system.drawing.font font1 = new system.drawing.font("arial", 12, fontstyle.bold); txttest.applyfont(font1);
Comments
Post a Comment