vb.net - Exporting to Excel using ClosedXML.Excel and making a header row -


below snippet of function using export gridview excel , code merges range of cells, , formats text. make header row appear on every print page should user elect print worksheet. i'm thinking must configurable item, syntax please?

    dim xldoc new xlworkbook()     xldoc.addworksheet("export")     dim xlws ixlworksheet = xldoc.worksheets(0)     xlws.row(1).cell(1).value = "some text"     xlws.row(1).cell(1).style.fill.backgroundcolor = xlcolor.fromargb(255, 255, 102)     xlws.row(1).cell(1).style.font.bold = true     xlws.range("a1", "g1").merge()     xlws.range("a1", "g1").style.border.outsideborder = xlborderstylevalues.thin     xlws.range("a2", "g2").setautofilter() 


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -