Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

New Post: open, edit and save

$
0
0

I need to open an excel 97-2003 file that is heavliy formatted.  Save data to specific cells, then save it under a new name.  Easy as pie with Interop but too costly.

Have tried 8 other open source gigs with no luck.  Did get one to save, but lost all formatting.

NPOI seems to let me save under a new name, keep formatting, but none of my edits show up.

var sheet = workBook.GetSheetAt(sheetNum);var row = sheet.GetRow(4);var cell = row.GetCell(0);
                cell.SetCellValue("5");

 

the the "5" never shows up in the new doc... ??? Thoughts?


Viewing all articles
Browse latest Browse all 1621

Trending Articles