New Post: Sheet.PrintSetup.Scale not working
Hi, I tried using Sheet.PrintSetup.Scale with 1.2.5 and even with the beta released yesterday, it doesn't seem to change the page setup settings in Excel. Am I missing something? Thanks.
View ArticleNew Post: [XSS] XLSX file : repair needed when using Double in SetCellValue()
Hi, i'm experiencing the same Problem. As soon as I export a double value, the file seems to get corrupted. I also noticed, that the value is then inserted as text, not as a number. Which means I get...
View ArticleNew Post: Invalid header signature; read 0x2020202020202020, expected...
I have created a excel file using File.WriteAllText(path, strhtml). as it had direct html table. I dont know if there is a way to create a excel file using html with NPOI. once the file is created i...
View ArticleNew Post: Cell Comments appears to corrupt xls file after creating/adding...
Is there a max number of comments NPIO will support, have created sheets with 32377 comments, but crashes excel on a save. Filtered down the comments, and at 1405 comments added, the file will save, at...
View ArticleNew Post: Cell Comments appears to corrupt xls file after creating/adding...
To be honest, you are the first one to ask the maximum comment a xls supports. This is never tested. Can you tell me why there are so many comments in your Excel file? Maybe we can work around it by...
View ArticleNew Post: Invalid header signature; read 0x2020202020202020, expected...
NPOI is created to create BINARY xls file and OOXML xlsx files. Html is not a supported option in NPOI because Html is plain text, you can totally use StreamWriter to finish the creation of Html.
View ArticleNew Post: [XSS] XLSX file : repair needed when using Double in SetCellValue()
Hi Mukuahya, Can you narrow down the issue to a Double value which may break the file via SetCellValue? This should be tested in the test cases. Btw, why do you think this is an XSS attack? XSS attack...
View ArticleNew Post: [NPOI.XSSF.UserModel] XLSX file : repair needed when using Double...
Easy way to reproduce (SetCellValueInXlsx sample modified to provoque the error) : using System; using System.Collections.Generic; using System.Text; using NPOI.SS.UserModel; using NPOI.XSSF.UserModel;...
View ArticleNew Post: Cell Comments appears to corrupt xls file after creating/adding...
The 1406 appears to be a red herring have created and save files with 1273 and 26397 commands. This appears to be a hard bug to tack down to a single create call as the call will work if comments calls...
View ArticleNew Post: Applying HTML tags to output
I am using NPOI to write content to an excel file like this: CreateCell(wb, qandARow, styQuestions, question.QuestionDescription, question.Level); However some of the question.QuestionDescription...
View ArticleNew Post: [NPOI.XSSF.UserModel] XLSX file : repair needed when using Double...
I have the same problem, please provide fix. BR
View ArticleNew Post: ISheet.AutoSizeColumn throws NullReferenceException when...
In "ApplyFontInXlsx" example, I add two lines//apply font to "Microsoft Office" IFont font4 = workbook.CreateFont(); font4.FontHeightInPoints = 12; font4.Boldweight = (short)FontBoldWeight.NORMAL; //...
View ArticleNew Post: Create row and relative formula reference
Hi, CopyRow function does not update relative references in formulas for the cells in the new row. Is this a correct behavior or is there something I have not taken into account? Unless CopyRow update...
View ArticleNew Post: Convert/Save HSSFWorkbook as XSSFWorkbook
I'd like to know, if there is a way to save a HSSFWorkbook as XSSFWorkbook (and vice versa) I tried the following, but it's not working: HSSFWorkbook lXlsWorkbook = new HSSFWorkbook("c:\file.xls");...
View ArticleNew Post: Converting Excel XSL to XSLX (Office 2003 to Offiece 2007)
Hi all! Is there a way to convert Excel XSL to XSLX using NPOI? If you have any informaton, I'll be very appreciate!!! Thanks in advance
View ArticleNew Post: Convert/Save HSSFWorkbook as XSSFWorkbook
Hi. I'm also very interested in this question. Please, someone! Help!!! :-)
View ArticleNew Post: Add pictures to exists Excel file with pictures
Tony, how would I go about checking my version? I am having a very similar issue. Thanks, Carl
View ArticleNew Post: No XSSFRow.IsHidden?
Dear NG, I was just trying to change my Excel output from HSSF to XSSF but noticed, that XSSFRow.IsHidden doesn't seem to exist. How will I make a row hidden in XSSFWorkbook? Kind regards, Thomas
View ArticleNew Post: No XSSFRow.IsHidden?
Ok, having a close look at the examples reveals the solution. Instead of using XSSFRow.IsHidden = true; I just needed to use use the property XSSFRow.ZeroHeight = true;
View ArticleNew Post: AutoSizeColumn got slow in NPOI 2.0
Dear NG, I was wondering if anyone experienced a significant slow down when using ISheet.AutoSizeColumn. I have a sheet with 70 columns by 2000 rows. The process of auto-sizing all columns incresed...
View Article