New Post: EOF In Header exception when reading .xlsm
The context for my error is different than yours - I was not trying to open a file...I was creating one. I can say that when I initialize a XSSFWorkbook (and get the underlying filestream), I don't use...
View ArticleNew Post: Reading Specific Columns or other ideas?
If you only need the Cells from specific Columns you can try to do this:private static List<ICell> GetSpecificColumnsCells(ISheet sheet, int fromColumn, int toColumn) { List<ICell>...
View ArticleNew Post: How to read cell text when formula is attached to cell.
In that case you can go with 2 options, or either use the ICell.CachedFormulaResultType which gives you the CellType of the actual result of that Formula and then parse that or you can go with...
View ArticleNew Post: Create row and relative formula reference
I dont know how CopyRow actually works (internally).. cause I've implemented my own copy cell/row which works by copying a cell or row or column, to a different row and column (if you want to full code...
View ArticleNew Post: Reading Specific Columns or other ideas?
You could also use Linq magic with the DataTable:var records = from a in _dataTable.AsEnumerable() where a.Field<String>("Column1") == "SomeValue" select a; I like the DataTable data structure,...
View ArticleNew Post: EOF In Header exception when reading .xlsm
Thank you @timclaason, yes, you're right with the stream reading, thats the problem of code re-using. Anyway I'm trying other XSSFWorkBook() with no luck, for example this with...
View ArticleNew Post: EOF In Header exception when reading .xlsm
FYI : this code works in order to read a file into a XSSFWorkbook: private IWorkbook InitializeAddingWorkbook(HttpPostedFile postedFile) { Stream fileStream = postedFile.InputStream; byte[]...
View ArticleNew Post: EOF In Header exception when reading .xlsm
That need to rewind seems sort of defect-ish...I wonder if it makes sense in this project to reset the position of the stream during object initialization...in any event, hopefully this message thread...
View ArticleCommented Unassigned: xlsx Insert second picture error [11892]
Hi all,When I insert secord picture in Xlsx file, it always replace first one.Any help? IWorkbook workbook = new XSSFWorkbook(); ISheet sheet1 = workbook.CreateSheet("PictureSheet"); IDrawing patriarch...
View ArticleCommented Unassigned: xlsx Insert second picture error [11892]
Hi all,When I insert secord picture in Xlsx file, it always replace first one.Any help? IWorkbook workbook = new XSSFWorkbook(); ISheet sheet1 = workbook.CreateSheet("PictureSheet"); IDrawing patriarch...
View ArticleNew Post: [NPOI.XSSF.UserModel] XLSX file : repair needed when using Double...
Hello, Sorry for the long wait, I was stuck on another big project and could not make the test. Here what I did : 1- When instanciating the new XSSFWorkbook, I added this command :...
View ArticleCreated Unassigned: How to read Dropdownlist from Excel sheet using NPOI [11974]
How to read Dropdownlist from Excel sheet using NPOI
View ArticleCommented Unassigned: How to read Dropdownlist from Excel sheet using NPOI...
How to read Dropdownlist from Excel sheet using NPOIComments: ** Comment from web user: sugumarr ** How to read Dropdownlist (form/ activex controls) from Excel sheet using NPOI
View ArticleNew Post: Error while reading .doc file
Hi! I got this file when i'm trying to read .doc (97-2003) file. An unhandled exception of type 'ICSharpCode.SharpZipLib.Zip.ZipException' occurred in ICSharpCode.SharpZipLib.dll Additional...
View ArticleCreated Unassigned: Format Excel(xlsx)'s line graph do not display [11976]
I use NPOI 2.0.1Beta1 to test:input data to a format excel(xlsx) which has a line graph and save as but there is a error when i open the result excelthe line graph cann't display my code as :``` Dim...
View ArticleCreated Unassigned: XSSFSheet.GetCTWorksheet is internal [11977]
Please change visibility from internal to public on XSSFSheet.GetCTWorksheet() function because this feature isn't usable now from main application.
View ArticleNew Post: Error reading .xlsm file with pivotTable
I have a template .xlsm file with two pivotTable in sheet2 and sheet3. If I read the file with NPOI, and save it to another path(without any changes), those pivotTable cannot be reopened again. To be...
View ArticleNew Post: Stress test of XSSF proves exponential time (performance concerns)
Why not keep the rows as an enumerated list and then have a render method that does the xml serialization at the end. That should increase performance handsomely.
View ArticleNew Post: How can I change the long date format to short date format?
when I export all data to excel file, how can I change the long date format to short date format? i.e., exported date format is 4/23/2013 12:00:00 AM, good format is 4/23/2013 Code as below:...
View ArticleNew Post: NPOI 2.0 Source Code
I could not find the NPOI 2.0 source code, someone could pass me a link where to download it? Thanks
View Article