Quantcast
Viewing all 1621 articles
Browse latest View live

Updated Wiki: Documentation


Commented Unassigned: Broken XLSX [13792]

Hi, I have several problematic XLSX files. When I try to open and save them result file is broken and can not be opened by excel.
Can you tell me what is wrong with the files ?

Thanks
Comments: ** Comment from web user: Kelemen **

Hi, I have found where is the problem (at least one):
1) Open empty workbook and type char & into cell A1.
2) Type formula A1 & A1 into cell B1.
3) Open and save using NPOI. Result is unreadable.

New Post: Digital Signatures in HSSF Workbook.

Is there a way we can find out whether we can find out whether the HSSF workbook that is created will have digital signatures in it.

Created Unassigned: ISheet.RemoveRow() removes wrong row [13796]

Hi,

When calling ISheet.RemoveRow(r) with r.RowNum = n, when I save the workbook and open it in excel the row actually deleted is the row number n-1-CountOfBlankRows.

I have tried using NPOI 2.1.1.0 and 2.1.3.1, both with a fresh new workbook (xlsx), see attached.

Sub Main()

Dim _WorkbookPath As String = "C:\temp\Test.xlsx"
Dim _Workbook As IWorkbook
Using ReadStream = New FileStream(_WorkbookPath, FileMode.Open, FileAccess.Read)
_Workbook = WorkbookFactory.Create(ReadStream)
End Using
Dim _Sheet As ISheet = _Workbook.GetSheetAt(0)

Dim idx As Integer = 10

Dim r As IRow = _Sheet.GetRow(idx)
_Sheet.RemoveRow(r)
Using writeStream As New FileStream(_WorkbookPath, FileMode.Create, FileAccess.Write)
_Workbook.Write(writeStream)
End Using

End Sub

New Comment on "NPOI Test Cases"

Could you share your test cases please?

New Post: Copy/Paste support

Does NPOI library support copy/paste from a third-party source?
In our application we have a third-party grid. Selecting a portion of the grid and executing the Copy (into the clipboard), we need to execute the Paste into Excel.

Thanks in advance

Reviewed: NPOI 2.2.0 (1月 04, 2016)

Rated 4 Stars (out of 5) - Yes,I very like

Created Unassigned: 2007 format Excel file corrupted [13809]

We use NPOI to modify an existing template and save it as a new one.
The new Excel file created by NOPI is always corrupted. When the file is opened, it says' We found a problem with some content in 'FileName.xlsx'.Do you want us to try to recover as much as we can? If you trust the source of this workbook, Click Yes" (发现FileName.xlsx 中部分内容有问题。是否让我们尽量尝试恢复?如果您信任次工作簿的源,请单击是)
We narrow down the condition, just use NPOI to open it and then save as a new file. The file will be corrupted.
We try the newest version 2.2.0, but in vain.

New Post: System Requirements

I wrote an application using NPOI 2.2.0. It works great on my system with Visual Studio 2015, but it won't run on any of the client systems. This site states the requirements as VS2010 with .NET 4.0 runtime, VS2005 or VS2008 with .NET 2.0 Runtime (SP1), vs2003 with .NET 1.1, Mono, and medium trust environment in ASP.NET.

I installed .NET 4.0 and 4.5. I then installed the "Visual Studio 2010 and .NET Framework 4 Training Kit" and Mono, but it still won't work.

Does anyone know what I need to install on the client systems other than the actual DLL libraries? I don't want to install Visual Studio to all the systems.

New Post: System Requirements

New Comment on "NPOI Road Map"

如何获取npoi指南 或教程?

Created Unassigned: RegionUtil.SetBorderColor corrupts cell's XSSFColor [13819]

In XSSFWorkbook: If you have some cells having as Foreground Color a custom XSSFColor, and then you want to apply a border to a group of such cells (a CellRangeAddress), all the cells in the margin (those that connect to the borders), have a black foregroung.

New Post: XWPF picture position

Hi all. First post here.

I just started with using the NPOI XWPF library. And until so far I have been able to just read and view tables and paragraphs in my application.

But now I want to get the pictures of XWPF.AllPictures at the correct positions in the document. Or know in which paragraph they belong to. But so far I haven't found anything yet which is usefull in the library or on internet to solve this.

Has someone managed to correctly place pictures?

Thanks in advance.

Commented Unassigned: SetAutoFilter() does not affect AutoSizeColumn() width [13651]

Calling SetAutoFilter() on a set of columns and then calling AutoSizeColumn() on those columns results in column widths that don't take into account the filter combo box icon.
The issue has been reproduced using HSSFSheet, please find attached an excel file example and the C# code to reproduce the issue.
Using NPOI version 2.1.3.1 https://github.com/tonyqus/npoi/commit/523df236ae4b212cc3dab6982acdf9f0a3802b7b
Comments: ** Comment from web user: jackpoz **

some kind of issue acknowledgement would be nice, if issues are totally ignored I might aswell stop reporting them

New Post: Saving large workbooks

What is the status of streaming.SXSSF support? Are we able to use SAX way of reading/writing spreadsheets? If not, when it is planned to be implemented?

Thanks for the update in advance.

Commented Unassigned: ISheet.RemoveRow() removes wrong row [13796]

Hi,

When calling ISheet.RemoveRow(r) with r.RowNum = n, when I save the workbook and open it in excel the row actually deleted is the row number n-1-CountOfBlankRows.

I have tried using NPOI 2.1.1.0 and 2.1.3.1, both with a fresh new workbook (xlsx), see attached.

Sub Main()

Dim _WorkbookPath As String = "C:\temp\Test.xlsx"
Dim _Workbook As IWorkbook
Using ReadStream = New FileStream(_WorkbookPath, FileMode.Open, FileAccess.Read)
_Workbook = WorkbookFactory.Create(ReadStream)
End Using
Dim _Sheet As ISheet = _Workbook.GetSheetAt(0)

Dim idx As Integer = 10

Dim r As IRow = _Sheet.GetRow(idx)
_Sheet.RemoveRow(r)
Using writeStream As New FileStream(_WorkbookPath, FileMode.Create, FileAccess.Write)
_Workbook.Write(writeStream)
End Using

End Sub
Comments: ** Comment from web user: myblindy **

Yeah I ran into this issue too, it's also present in the 2.2 Alpha release.

New Post: formula parsing exception

Doesn't need to be 'SUMPRODUCT(B3:B6,A3:A6)/B7'?

New Post: Comma/Semicolon formula problem

I have a problem with a formula containing IF function. The formula defined directly in Excel spreadsheet looks like this:
=IF(ISERR(M2/L2);"";M2/L2)
The semicolon here comes from the regional settings (comma is reserved for the decimal point).
The problem appears when I want to implement the formula using NPOI library. If I use it as above NPOI warns me about the incompleted formula (missing comma). If I replace semicolons with commas NPOI throws a low level exception with "too far" message. Is there any proper solution here?

Updated Wiki: Home

Who are We
Neuzilla is the studio behind NPOI. For detail, you can check http://blog.neuzilla.com/
 
What's NPOI
This project is the .NET version of POI Java project at http://poi.apache.org/. POI is an open source project which can help you read/write xls, doc, ppt files. It has a wide application.
For example, you can use it to
a. generate a Excel report without Microsoft Office suite installed on your server and more efficient than call Microsoft Excel ActiveX at background;
b. extract text from Office documents to help you implement full-text indexing feature (most of time this feature is used to create search engines).
c. extract images from Office documents
d. generate Excel sheets that contains formulas
 
Our Sponsor (赞助商)
 
E-iceblue is a community sponsor of NPOI. 提供中文支持支持
Don't forget to have a try on Free Spire.XLS
Image may be NSFW.
Clik here to view.
XLS
 
 Donate NPOI

支付宝捐款账号: tonyqus@163.com
Paypal: tonyqus@gmail.com

 
 
Advantage of NPOI
a. It's totally free to use
b. Cover most features of Excel (cell style, data format, formula and so on)
c. Support xls, xlsx, docx.
d. Designed to be interface-oriented (take a look at NPOI.SS namespace)
e. Support not only export but also import
f. .Net 2.0 based even for xlsx and docx (though we also support .NET 4.0)
g. Successful cases from all over the world
h. huge amout of basic examples
i. No dependency on isolated storage
 
To get the latest code, please visithttps://github.com/tonyqus/npoi.
 
 
Comments from NPOI users
 
 
Tutorial

NPOI on SNS
中文
QQ群: 189925337
 
English

System Requirement
VS2010 with .NET 4.0 runtime
VS2005 or VS2008 with .NET 2.0 Runtime (SP1)
vs2003 with .NET 1.1
Mono
medium trust environment in ASP.NET
 
Extensions
 

Updated Wiki: Home

Who are We
Neuzilla is the studio behind NPOI. For detail, you can check http://blog.neuzilla.com/
 
What's NPOI
This project is the .NET version of POI Java project at http://poi.apache.org/. POI is an open source project which can help you read/write xls, doc, ppt files. It has a wide application.
For example, you can use it to
a. generate a Excel report without Microsoft Office suite installed on your server and more efficient than call Microsoft Excel ActiveX at background;
b. extract text from Office documents to help you implement full-text indexing feature (most of time this feature is used to create search engines).
c. extract images from Office documents
d. generate Excel sheets that contains formulas
 
Our Sponsor (赞助商)
 
E-iceblue is a community sponsor of NPOI. 提供中文技术支持
Don't forget to have a try on Free Spire.XLS
Image may be NSFW.
Clik here to view.
XLS
 
 Donate NPOI

支付宝捐款账号: tonyqus@163.com
Paypal: tonyqus@gmail.com

 
 
Advantage of NPOI
a. It's totally free to use
b. Cover most features of Excel (cell style, data format, formula and so on)
c. Support xls, xlsx, docx.
d. Designed to be interface-oriented (take a look at NPOI.SS namespace)
e. Support not only export but also import
f. .Net 2.0 based even for xlsx and docx (though we also support .NET 4.0)
g. Successful cases from all over the world
h. huge amout of basic examples
i. No dependency on isolated storage
 
To get the latest code, please visithttps://github.com/tonyqus/npoi.
 
 
Comments from NPOI users
 
 
Tutorial

NPOI on SNS
中文
QQ群: 189925337
 
English

System Requirement
VS2010 with .NET 4.0 runtime
VS2005 or VS2008 with .NET 2.0 Runtime (SP1)
vs2003 with .NET 1.1
Mono
medium trust environment in ASP.NET
 
Extensions
 
Viewing all 1621 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>