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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -