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 2016/04/20 14:03:43 UTC

[Bug 59358] New: save xlsx is not possible

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

            Bug ID: 59358
           Summary: save xlsx is not possible
           Product: POI
           Version: 3.14-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: ivan.horvath@nokia.com

Hi,

i need to make some change on an existing xlsx file, and save it with a new
name.
tried to follow the examples, but didn't work with my solution

test2.xlsx is the existing file, i would like to open..modify..save to a new
name
netbeans project is attached too

thanks in advance for your help!
Ivan

-- 
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 59358] save xlsx is not possible

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59358

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 OS|                            |All
             Status|NEW                         |RESOLVED

--- Comment #2 from Dominik Stadler <do...@gmx.at> ---
This is likely due to the fact that you close the OPCPackage while the Workbook
is still accessed, you should rather use the constructor of XSSFWorkbook which
receives a filename instead to keep resources open until the workbook is closed
at the end.

    try (OPCPackage pkg = OPCPackage.open(new File(filename))) {
      _WB = new XSSFWorkbook(pkg);
    }

If that does not solve the problem, then please reopen this bug with a more
reduced test-case that shows your problem with as little code as possible.

-- 
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 59358] save xlsx is not possible

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59358

--- Comment #1 from Ivan Horvath <iv...@nokia.com> ---
Created attachment 33781
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=33781&action=edit
netbeans project and sample xlsx

-- 
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