https://issues.apache.org/bugzilla/show_bug.cgi?id=57162
Ranjay Mishra <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #9 from Ranjay Mishra <[email protected]> --- Hi, I have attached sample xlsm file(before export). Please see below for exact code. The same piece of code is working if I use only below 4 jars along with jre1.7 poi.jar, poi-ooxml.jar, poi-ooxlm-schema.jar and xmlbean2.6.0.jar for standalone project. But when I use the same code with all above 4 jars along with other jar in build path which ever was earlier , then it stop working. After comparing the generated xlsm file I found content-type is corrupt. Please note that same xlsm file , same code was working with same jars in build path with poi3.9. If this is happens because of the marshalling changes in StreamHelper.saveXmlInStream could you please let me know the work around or fix for that. I am also attaching the generated xlsm file(the corrupt file). CODE Used ---------- Workbook wb; OPCPackage pkg = OPCPackage.open("D:\\Users\\rmishra\\Desktop\\sample_template.xlsm"); XSSFWorkbook workbook=new XSSFWorkbook(pkg); SXSSFWorkbook sxWb = new SXSSFWorkbook(workbook); sxWb.setCompressTempFiles(false); FileOutputStream out = new FileOutputStream("D:\\DescribeLink\\sample_template.xlsm"); wb = sxWb; sxWb.write(out); out.close(); -- 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]
