https://bz.apache.org/bugzilla/show_bug.cgi?id=61533

            Bug ID: 61533
           Summary: Exception: Duplicate name "SummaryInformation" error
                    is coming while parsing a file NPOI 2.3.0 in C#
           Product: POI
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HSSF
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Hi,

I am trying to open a file using FileStream Object in C# and I am getting an
error: " 
 " Duplicate name " SummaryInformation" ". We are getting this file from our
client to parse the file and process the information in our system.

But one scenario, I have noticed that If I open this file using Microsoft excel
and at the time of closing, the excel is asking for save the file. If do no
changes in the file and just click save button(or Ctrl + S), then I am not
getting any error and the file is getting processed properly. Please find my
code and exception details below:

Code:

using (FileStream sourceStream = File.Open(filePath, FileMode.Open,
FileAccess.Read))
{
    HSSFWorkbook Workbook = new HSSFWorkbook(sourceStream); // This statement
is throwing an exception    
}

Exception Message: " Duplicate name " SummaryInformation" "

Exception Source: NPOI DLL

Target Site Name: PopulatePropertyTree 

Please help me with a quick resolution for this. 

Thanks In advance.

Regards,
Nilabhra Bhattacharjee

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to