c# - NPOI: Edit cell -


i using following code edit cells of excel file dont see changes in escel file.

    using (var fs = new filestream(reconnfilename, filemode.open, fileaccess.readwrite))     {         hssfworkbook template = new hssfworkbook(fs, true);         isheet sheet = template.getsheetat(0);          int rownumber=3;         foreach(stringbuilder cardholdervalue in cardholdervalues)         {             sheet.getrow(rownumber).cells[2].setcellvalue(cardholdervalue.tostring());             rownumber++;         }     } 

and can't find save() function in so. please let me know how can save edits.

look at: http://dotnetslackers.com/articles/aspnet/create-excel-spreadsheets-using-npoi.aspx#s7-conclusion. there write method save excel file.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -