You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2014/11/04 12:17:05 UTC
[Bug 57181] New: Apache POI 3.9 API to unable to read 2007 xlsm file
https://issues.apache.org/bugzilla/show_bug.cgi?id=57181
Bug ID: 57181
Summary: Apache POI 3.9 API to unable to read 2007 xlsm file
Product: POI
Version: unspecified
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: XSSF
Assignee: dev@poi.apache.org
Reporter: suyogkasawa2007@gmail.com
Hi
Below is the code base to read xlsm file :
Sheet sheet = null;
try
{
byte[] filedata = attachmentValue.getFileData();
InputStream inputFileStream = new ByteArrayInputStream(filedata);
//Create Workbook instance for xlsm file input stream
Workbook workbook = null;
if(attachmentValue.getFileName().toLowerCase().endsWith("xlsm") ){
workbook = new XSSFWorkbook(inputFileStream);
}
sheet = workbook.getSheetAt(0);
}
catch (Exception e) {
}
The above highlighted code is working fine with the xlsm file created with
Microsoft Office 2010 but throwing below exception with Microsoft office 2007 :
[11/3/14 23:09:26:424 SGT] 0000019e SystemErr R
org.apache.poi.POIXMLException:
org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should
contain a content type part [M1.13]
[11/3/14 23:09:26:425 SGT] 0000019e SystemErr R at
org.apache.poi.util.PackageHelper.open(PackageHelper.java:41)
[11/3/14 23:09:26:426 SGT] 0000019e SystemErr R at
org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:204)
Please suggest if anyone has identified & fixed same kind of issues.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57181] Apache POI 3.9 API to unable to read 2007 xlsm file
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57181
--- Comment #2 from Suyog <su...@gmail.com> ---
Tried with poi-bin-3.10-FINAL, but getting same issue
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57181] Apache POI 3.9 API to unable to read 2007 xlsm file
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57181
--- Comment #4 from Suyog <su...@gmail.com> ---
xlsm files created with Microsoft 2010 are working fine but issue is with files
created/updtaed on 2007.
Even if we open the 2007 updtaed/creted file which is failling in 2010 & just
save it without any chnage, those are working fine
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57181] Apache POI 3.9 API to unable to read 2007 xlsm file
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57181
Dominik Stadler <do...@gmx.at> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|unspecified |3.10-FINAL
--- Comment #6 from Dominik Stadler <do...@gmx.at> ---
Also can you attach two such files, one created with Excel 2007 and one with
Excel 2010?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57181] Apache POI 3.9 API to unable to read 2007 xlsm file
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57181
--- Comment #5 from Nick Burch <ap...@gagravarr.org> ---
Try with a recent nightly build / build from svn?
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57181] Apache POI 3.9 API to unable to read 2007 xlsm file
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57181
Nick Burch <ap...@gagravarr.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
OS| |All
--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
3.9 is a little old, can you please re-test with 3.11 beta 2, or even better, a
recent nightly build? (3.11 beta 3 should be out in a few days)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57181] Apache POI 3.9 API to unable to read 2007 xlsm file
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57181
--- Comment #3 from Suyog <su...@gmail.com> ---
xlsm files created with Microsoft 2010 are working fine but issue is with files
created/updtaed on 2007.
Even if we open the file in 2010 & just without any chnage, those are working
fine
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org
[Bug 57181] Apache POI 3.9 API to unable to read 2007 xlsm file
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57181
Emanuele <le...@libero.it> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |leleweb28@libero.it
--- Comment #7 from Emanuele <le...@libero.it> ---
Hello,
I read xlsm file properly but have the same problem when add "Protect Workbook"
on Revision tab. I use 3.11 beta 3 version
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org