c# - custom header names with SoftArtisans OfficeWriter? -


i using softartisans officewriter tool create excel file. using dataimportproperties.usecolumnnames=true column headers populated class property names want give custom column headers. suggestions?

donot use dataimportproperties.usecolumnnames=true.instead use cell specific formatting since header every cell row/column number known.ex.           style headerstyle = wb.createstyle();                 headerstyle.font.size = 10;                 headerstyle.font.bold = true;                             ws.cells[1, 0].value = "name";                 ws.cells[1, 0].applystyle(headerstyle);  can merge , group columns  :             ws[0, 0].value = "information";             palette pal = wb.palette;             color group1color = pal.getclosestcolor(255, 244, 205);             headerstyle.backgroundcolor = group1color;             headerstyle.font.bold = true;             ws[0, 0].applystyle(headerstyle);             ws.createarea(0, 0, 1, 13).mergecells();             ws.groupcolumns(0, 12, true); //true/false keeps group collapsed/uncollpasedwhen user opens workbook. 

Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -