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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -