Quantcast
Channel: npoi Issue Tracker Rss Feed
Viewing all 690 articles
Browse latest View live

Created Issue: Create ExtractorFactory like class as in POI [11223]

$
0
0
Hi,

Create a class like ExtractorFactory.java so that we can use POIFS effectively.

Thanks & Regards,
N.Murali Krishna.

Created Issue: CreateRow not working [11255]

$
0
0
I used the example for exporting to excel. I have added all dll. But i get error on below line
sheet1.CreateRow(0).CreateCell(0).SetCellValue("This is a Sample");

It seems CreateRow function is missing from your provided source code

Commented Issue: CreateRow not working [11255]

$
0
0
I used the example for exporting to excel. I have added all dll. But i get error on below line
sheet1.CreateRow(0).CreateCell(0).SetCellValue("This is a Sample");

It seems CreateRow function is missing from your provided source code
Comments: ** Comment from web user: kirannandedkar **

Same goes for CreateCell

Commented Issue: CreateRow not working [11255]

$
0
0
I used the example for exporting to excel. I have added all dll. But i get error on below line
sheet1.CreateRow(0).CreateCell(0).SetCellValue("This is a Sample");

It seems CreateRow function is missing from your provided source code
Comments: ** Comment from web user: tonyqus **

You did something wrong. I have no idea why you got this wired issue. This must not be a bug.

Closed Issue: CreateRow not working [11255]

$
0
0
I used the example for exporting to excel. I have added all dll. But i get error on below line
sheet1.CreateRow(0).CreateCell(0).SetCellValue("This is a Sample");

It seems CreateRow function is missing from your provided source code
Comments:

Not a issue. User error

Created Issue: Error evaluating cell on excel PV function [11265]

$
0
0
I receive an 'error evaluating cell' message when running the EvaluateAllFormulaCells method on an xls that has a cell with the present value function PV. i do not receive the error on any other formulas.

Please see my code below and let me know if any ideas. Thanks!

HSSFWorkbook xssfwb;
using (FileStream file = new FileStream(@"c:\Book1.xls", FileMode.Open, FileAccess.ReadWrite))
{
xssfwb = new HSSFWorkbook(file);
HSSFFormulaEvaluator.EvaluateAllFormulaCells(xssfwb);
}

Created Issue: Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0 [11279]

$
0
0
I hit this error no matter which version of Excel I upload.
from 2003 - 2010 (.xls, .xlsx)

Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0

Commented Issue: Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0 [11279]

$
0
0
I hit this error no matter which version of Excel I upload.
from 2003 - 2010 (.xls, .xlsx)

Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0
Comments: ** Comment from web user: loselegend **

string filepath = localpath + FileUpload1.FileName; // For XLS/XLSX extension

FileUpload2.PostedFile.SaveAs(filepath);

HSSFWorkbook hssfwb;
using (FileStream file = new FileStream(filepath, FileMode.Open, FileAccess.Read))
{
//here hit the error hssfwb = new HSSFWorkbook(file);
}


Commented Issue: Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0 [11279]

$
0
0
I hit this error no matter which version of Excel I upload.
from 2003 - 2010 (.xls, .xlsx)

Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0
Comments: ** Comment from web user: loselegend **

Forgot to add on, I am using VS2010, C#, .Net 4.0

Commented Issue: Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0 [11279]

$
0
0
I hit this error no matter which version of Excel I upload.
from 2003 - 2010 (.xls, .xlsx)

Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0
Comments: ** Comment from web user: tonyqus **

Please make sure that you open with the correct namespace. For xls, you must use HSSF. For xlsx, you must use XSSF. The error occurs because you are trying to open xlsx with HSSFWorkbook. Instead, XSSFWorkbook should be used.

Closed Issue: Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0 [11279]

$
0
0
I hit this error no matter which version of Excel I upload.
from 2003 - 2010 (.xls, .xlsx)

Invalid header signature; read 0x0000000000000000, expected 0xE11AB1A1E011CFD0
Comments:

Not a bug

Commented Issue: [HSSF] Page scale doesn't work in Excel 2007/2010 [11170]

$
0
0
<p>Even if you set the value of scale in Print Setup object, it doesn&#39;t work in Excel 2007/2010. The radiobox of scale is no selected as expected.</p>

Comments: ** Comment from web user: tonyqus **

It looks a bin file of PrintSetup is not generated correctly in the current version of POI as well as NPOI. I'll try to fix it. This is confirmed as a bug

Created Issue: CreateDrawingPatriarch only works once [11330]

$
0
0
NPOI 2.0 alpha

When using XSSH and invoking CreateDrawingPatriarch() on a sheet only the first call will return an IDrawing object. Subsequent calls will return null.

Sample Code:

private static void SetCellComment(ISheet worksheet, int columnPosition, int rowPosition, string comment)
{
//Get row
var row = worksheet.GetRow(rowPosition) ?? worksheet.CreateRow(rowPosition);

//Get or Create Cell
var cell = row.GetCell(columnPosition) ?? row.CreateCell(columnPosition);

//We need a drawing patriarch as a graphics surface.
var drawingSurface = worksheet.CreateDrawingPatriarch();

//The creation helper can provide objects.
var objectFactory = worksheet.Workbook.GetCreationHelper();

//We need a graphics anchor.
var anchor = objectFactory.CreateClientAnchor();

//Create the new comment.
var newComment = drawingSurface.CreateCellComment(anchor);
newComment.String = objectFactory.CreateRichTextString(comment);

//Link the comment to the desired cell.
cell.CellComment = newComment;
}

Commented Issue: CreateDrawingPatriarch only works once [11330]

$
0
0
NPOI 2.0 alpha<br>
<br>
When using XSSH and invoking CreateDrawingPatriarch() on a sheet only the first call will return an IDrawing object. Subsequent calls will return null.<br>
<br>
Sample Code:<br>
<br>
<p>private static void SetCellComment(ISheet worksheet, int columnPosition, int rowPosition, string comment)<br>
{<br>
//Get row<br>
var row = worksheet.GetRow(rowPosition) ?? worksheet.CreateRow(rowPosition);</p>

<p> //Get or Create Cell<br>
var cell = row.GetCell(columnPosition) ?? row.CreateCell(columnPosition);<br>
<br>
//We need a drawing patriarch as a graphics surface.<br>
var drawingSurface = worksheet.CreateDrawingPatriarch();</p>

<p> //The creation helper can provide basic objects.<br>
var objectFactory = worksheet.Workbook.GetCreationHelper();</p>

<p> //Create the new comment.<br>
var newComment = drawingSurface.CreateCellComment(objectFactory.CreateClientAnchor());<br>
newComment.String = objectFactory.CreateRichTextString(comment);</p>

<p> //Link the comment to the desired cell.<br>
cell.CellComment = newComment;<br>
}</p>
Comments: ** Comment from web user: Cursorkeys **

I would look at it myself but can't persuade CodePlex's SVN viewer to show me anything but the main 1.2.5 tree?

Created Issue: CloneSheet with textbox causes InvalidCastException [11345]

$
0
0
What steps will reproduce the problem?
1. Open a XLS with Textboxes on a sheet
2. Try to clone the sheet

The following error appears:
InvalidCastException was unhandled by user code
Unable to cast object of type 'NPOI.DDF.EscherTextboxRecord' to type 'NPOI.DDF.EscherContainerRecord'.

StackTrace:
at NPOI.HSSF.Model.InternalWorkbook.CloneDrawings(InternalSheet sheet)
at NPOI.HSSF.UserModel.HSSFWorkbook.CloneSheet(Int32 sheetIndex)

tried:
NPOI 1.2.5
NPOI 2.0 alpha

The same error happens in both versions.

Commented Issue: npoi The maximum column width for an individual cell is 255 characters. [11182]

$
0
0
<p>npoi The maximum column width for an individual cell is 255 characters.</p>

Comments: ** Comment from web user: karldodd **

Hello, is there any particular reason to have this 'design'? For some users, this looks like a constraint anyway.
Thanks for your great work.

Commented Issue: Could not load file or assembly 'NPOI.OpenXmlFormats.XmlSerializers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1' or one of its dependencies. The system cannot find the file specified. [11158]

$
0
0
<p>Hi, </p>
<p>&nbsp;</p>
<p>I have the following error : Could not load file or assembly &#39;NPOI.OpenXmlFormats.XmlSerializers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1&#39; or one of its dependencies. The system cannot find the file specified.</p>
<p>&nbsp;</p>
<p>This happens at runtime when trying to open an XSSFworkbook : </p>
<p>&nbsp;</p>
<p>NPOI.SS.UserModel.IWorkbook workbook = new NPOI.XSSF.UserModel.XSSFWorkbook(fs);</p>
<p>&nbsp;</p>
<p>I have references to NPOI, NPOI.OOXML, NPOI.OpenXml4Net and NPOI.OpenXmlFormats</p>

Comments: ** Comment from web user: AriasFelipe **

Hello

I'm having the same problem, but I can not solve it, this is the error log I have...

Managed Debugging Assistant 'BindingFailure' has detected a problem in 'c:\MyWork\Projects\exes\DataAnalysis.exe'.
Additional Information: The assembly with display name 'NPOI.OpenXmlFormats.XmlSerializers' failed to load in the 'LoadFrom' binding context of the AppDomain with ID 1. The cause of the failure was: System.IO.FileNotFoundException: Could not load file or assembly 'NPOI.OpenXmlFormats.XmlSerializers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1' or one of its dependencies. The system cannot find the file specified.
File name: 'NPOI.OpenXmlFormats.XmlSerializers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1'

=== Pre-bind state information ===
LOG: User = xxx\xxx
LOG: DisplayName = NPOI.OpenXmlFormats.XmlSerializers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL
(Fully-specified)
LOG: Appbase = file:///c:/MyWork/Projects/exes/
LOG: Initial PrivatePath = NULL
Calling assembly : System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.
===
LOG: This bind starts in default load context.
LOG: No application configuration file found.
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Post-policy reference: NPOI.OpenXmlFormats.XmlSerializers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL
LOG: Attempting download of new URL file:///c:/MyWork/Projects/exes/NPOI.OpenXmlFormats.XmlSerializers.DLL.
LOG: Attempting download of new URL file:///c:/MyWork/Projects/exes/NPOI.OpenXmlFormats.XmlSerializers/NPOI.OpenXmlFormats.XmlSerializers.DLL.
LOG: Attempting download of new URL file:///c:/MyWork/Projects/exes/NPOI.OpenXmlFormats.XmlSerializers.EXE.
LOG: Attempting download of new URL file:///c:/MyWork/Projects/exes/NPOI.OpenXmlFormats.XmlSerializers/NPOI.OpenXmlFormats.XmlSerializers.EXE.

This is my code...

using namespace NPOI::HSSF::UserModel;
using namespace NPOI::XSSF::UserModel;
using namespace NPOI::SS::UserModel;
using namespace NPOI::OpenXmlFormats;
...
IWorkbook^ book;
book = gcnew XSSFWorkbook(stream);

And I have all the DLLs referenced including NPOI.OpenXmlFormats.dll, I tried with the Alpha 2.0 release. My project is being compiled with .Net 3.5 using Visual C++ Express version.... as reference, I tried other library and also complains with the XML libraries (not using this one) so, there may be an issue with some XML patch or security setting....

When I try to list all members in the NPOI.OpenXmlFormats.dll I only see the namespaces:
Vml
Wordprocessing
Noting like XmlSerializers... as if this namespace or class were not included in the library...

Regards...

Created Issue: Couldnot delete worksheet [11376]

$
0
0
I am trying to delete first sheet from excel file like below
_Worksheet _wsh = (_Worksheet)shs.get_Item(1);
_wsh.Delete();
But it throws error. Am i doing something wrong pls guide.

Commented Issue: Couldnot delete worksheet [11376]

$
0
0
I am trying to delete first sheet from excel file like below
_Worksheet _wsh = (_Worksheet)shs.get_Item(1);
_wsh.Delete();
But it throws error. Am i doing something wrong pls guide.
Comments: ** Comment from web user: tonyqus **

What's the detailed exception?

Commented Issue: NPOI 2.0 Unable to Export 70k Rows [11160]

$
0
0
<p>Hi,</p>
<p>&nbsp;</p>
<p>I am using NPOI 2.0 Alpha to export data from a work system as we wanted to get round the Excel 97-2003 65K row limitation. </p>
<p>&nbsp;</p>
<p>I have implemented it today but it seems to be unable to export 70k rows and falls over with an OutOfMemory exception.</p>
<p>&nbsp;</p>
<p>The file is only 70k rows by around 20/25 columns of text - no formatting is present.</p>
<p>&nbsp;</p>
<p>I understand XML requires large amounts of memory but the limitation doesn&#39;t seem to be down to my machine (it has plenty of RAM spare), instead it seems to be down to one of the internal structures that NPOI is using (memory stream or byte array perhaps?).</p>
<p>&nbsp;</p>
<p>I have attached a stack trace to demonstrate.</p>
<p>&nbsp;</p>
<p>Could someone advise if there is a way round this? Alternatively, where can i find the NPOI 2.0 source code for download so i can step through and try and find a solution myself?</p>
<p>&nbsp;</p>
<p>If this can be solved it&#39;d be a real bonus as this will likely be a common problem.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Thanks in advance,</p>
<p>&nbsp;</p>
<p>u33db</p>

Comments: ** Comment from web user: tonyqus **

No workaround for now. We will try to optimize this issue in NPOI 2.1 or later version.

Viewing all 690 articles
Browse latest View live


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