ASF Bugzilla – Attachment 33133 Details for
Bug 58446
Excel document needs repair after simply opening and saving document
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
minimal program to cause issue.
tester.java (text/plain), 803 bytes, created by
kcarter
on 2015-09-22 13:54:06 UTC
(
hide
)
Description:
minimal program to cause issue.
Filename:
MIME Type:
Creator:
kcarter
Created:
2015-09-22 13:54:06 UTC
Size:
803 bytes
patch
obsolete
>package mydocumenttester; > >import java.io.FileInputStream; >import java.io.FileOutputStream; >import java.io.InputStream; > >import org.apache.poi.openxml4j.opc.OPCPackage; >import org.apache.poi.xssf.usermodel.XSSFWorkbook; > > > >public class tester { > > public static void main(String[] args){ > > > String inputfilepath = "C:/Users/kcarter/Downloads/test1.xlsx"; > InputStream is; > try { > is = new FileInputStream(inputfilepath); > OPCPackage pkg = OPCPackage.open(inputfilepath); > XSSFWorkbook workbook = new XSSFWorkbook(pkg); > > > FileOutputStream out = new FileOutputStream("C:/Users/kcarter/Downloads/triedToFix.xlsx"); > workbook.write(out); > > out.close(); > > } catch (Exception e) { > e.printStackTrace(); > } > > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 58446
: 33133 |
33134
|
33135