New Post: Format as Table
That's what I thought. I spent some time researching on poi too, but nothing came out of it. If anybody is going through that pass, I suggest the same approach I worked on, using an Excel Macro. Any...
View ArticleNew Post: NPOI makes a mess of my .XLSX file when writing to existing file
Hi folks, When I wrtie to an .XLS file there is no problem, it works correct. But when I write to a .XLSX file the file is messed up. Mu code is ± private IWorkbook wb; // Class and code FileStream...
View ArticleNew Post: EOF In Header exception when reading .xlsm
I'm getting an EOF in Header exception when opening a XLSM file and initializing a XSSFWorkBook(Stream) object with the 2.0 beta version of NPOI. Below is a stack trace. Has anyone seen this before?...
View ArticleNew Post: Excel Found Unreadable Content in [filename]
I've been struggling with this issue for a couple weeks with the NPOI 2.0 beta, where the HSSFWorkbook doesn't have the issue, but the XSSFWorkbook does, and I believe I found the source of the...
View ArticleNew Post: EOF In Header exception when reading .xlsm
FYI - this problem was resolved, and it was a problem on my part, not on the NPOI library.
View ArticleNew Post: read word doc into string
not included? It is mentioned in a post at http://stackoverflow.com/questions/9672461/trying-to-read-an-ms-office-document can't understand what is meant by following "Anyway, you can find the source...
View ArticleNew Post: WriteProtectWorkbook issue
Hi all, I've created a xls file for download with: HSSFWorkbook book = new HSSFWorkbook(file, FileMode.Open, FileAccess.Read)); and use WrireProtectWorkbook to password protect it, and insert data into...
View ArticleNew Post: Dose NPOI support WinRT and WindowsPhone
I didn't get a chance to use WinRT or WindowsPhone because I'm still using Win7. I have no answer for this. Maybe you can try to reference NPOI and write some application to test if it's supported.
View ArticleNew Post: NuGet package
Hi, I have installed the NuGet package for version 1.2.5 into my project but I am now getting the following warning when building the project:Found conflicts between different versions of the same...
View ArticleNew Post: Change Chart Data Range
green_soft_group wrote: Hi Is it posible to change chart data range? There is a chart in excel file that its data range is A1-A4. I want to change this range(e.g. A3-A10 or B3-B8). How can I do it?...
View ArticleNew Post: XSSF issues (ShiftRows, lastRowNumber)
Hi everyone, I had a long time need for such a library, and i had the luck to stumble upon this one. I would like to share some issues, not sure if they are bugs (or features..), that might save some...
View ArticleNew Post: EOF In Header exception when reading .xlsm
Hi, how do you solve this ? I have exactly the same problem creating a XSSFWorkbook reading from stream (xlsx source): Here I'm reading from posted file in SharePoint (properties are...
View ArticleNew Post: HWPF Issue
I am simply trying to read the text from MS Word (.doc) file using the HWPFDocument class but somehow I can not manage to get it done.As far as I know You don't have it officialy released in a library...
View ArticleNew 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 Article