New Post: Getting a cells data type
Hi All, I'm extracting data from a .xlsx workbook and am tring to ascertain the type of a cells data e.g. numeric,string or date and the only property I can see to do this is the CellStyle.DataFormat...
View ArticleNew Post: Read XLSB
No, xlsb are not supported. My user finally save the file in xlsx format. Greetings!
View ArticleNew Post: row is grouped or not?
To group excel row exist function ISheet.GroupRow. What function for check if row is grouped or not?
View ArticleNew Post: how to set text direction
hi, anyone knows how to set text direction to vertical not just rotate cell. i wanna text like below测 试 文 字 thanks in advance
View ArticleNew Post: Mitliselect dropdown
Hi , I am using NPOI 2.0 for excel. i am using c# as my language and I want multi-select dropdown in excel(xls). Let me know if its possible if yes please provide the code.
View ArticleNew Post: Checkbox in Excel
Hi, i am using NPOI 2.0 for my excel generation using c#. Do any one have idea how to create Checkboxes in excel using NPOI?
View ArticleNew Post: Open XLS from a URL
Hello, I am using the NPOI 2.1 version. I am trying to open a XLS file from a URL, but I am getting a NotSupportedException. Here's my code: HSSFWorkbook wb; System.Net.HttpWebRequest request =...
View ArticleNew Post: User defined function and excel internal function
Hello Could you please provide a sample of defining excel internal functions or user defined functions in NPOI? thanks
View ArticleNew Post: Juninho
Good Morning. I'm trying to import an excel with more than 100,000 lines, but the error occurs: "An exception of type 'System.OutOfMemoryException' occurred in mscorlib.dll but was not handled in user...
View ArticleNew Post: 2.0+中操作Excel错误
使用HSSFWorkbook建立XLS时,操作默认的Sheet0,无论是删除,改名,或者获得(按名称或者Index)都会出错,即使建立一个新Sheet后再操作也会出现错误。希望能处理一下。 XSSFWorkbook没有试过。未知。 PS:一个小建议,默认Sheet名称以Sheet1、Sheet2···来命名,和Excel一样,这样比较方便对应
View ArticleNew Post: How to read the Xlsm file format in NPOL.
Hello, I am using the NPOI 2.o version. I am able to read and write xls and xlsx file format. But not able to read or write xlsm format in NPOL. what to do to read and write xlsm format file in NPOL....
View ArticleNew Post: MVC Console With NPOI
I am new with NPOI and I want to know how it works to get it started. I plan on creating a Console MVC application. NPOI passes through a class that passes to the console.
View ArticleNew Post: printgridline not working
code : InitializeWorkbook(); ISheet sheet1 = hssfworkbook.CreateSheet("Sheet1"); sheet1.FitToPage = false; sheet1.IsPrintGridlines = true; not working in Excel 2010 and 2013 thank you
View ArticleNew Post: Getting Data from SQL to Excel
I am a newbie in NPOI and I would like to know how I could fill up the cells with data from SQL to be seen in excel. Thank you in advance.
View ArticleNew Post: Unable to add new sheet to existing workbook
I am using NPOI 2.1.3, and having an issue where the workbook.CreateSheet method is not adding a new sheet to an existing workbook. It's not even overwriting the sheet that's already there. Here's my...
View ArticleNew Post: Unable to add new sheet to existing workbook
Please make sure you write the result back to your Excel file. To write back, a new FileStream should be created. The original stream is for read purpose only!
View ArticleNew Post: Open XLS from a URL
Please make sure the downloaded xls file is a real Excel. If it's a html-based Excel file, it will not be recognized by NPOI. You can save the response result to a file first to check what's going on.
View ArticleNew Post: Unable to add new sheet to existing workbook
A thousand thanks, tonyqus. That worked like a charm. For anyone else having the problem, here's how I fixed it: //Check for existing workbook FileStream fs = new FileStream(myExistingWorkbook.xlsx,...
View Article