ASF Bugzilla – Attachment 28050 Details for
Bug 52300
Corrupted File after cloneSheet()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Testprogram
POITemplateCopyTest.java (text/java), 993 bytes, created by
Stefan Helfert
on 2011-12-07 12:34:30 UTC
(
hide
)
Description:
Testprogram
Filename:
MIME Type:
Creator:
Stefan Helfert
Created:
2011-12-07 12:34:30 UTC
Size:
993 bytes
patch
obsolete
>/* > * date author (creator) > * 07.12.2011 helfert > * Copyright (c) 2011 KUKA Systems GmbH All rights reserved. > */ >package src; > >import java.io.File; >import java.io.FileInputStream; >import java.io.FileNotFoundException; >import java.io.FileOutputStream; >import java.io.IOException; >import java.io.InputStream; > >import org.apache.poi.hssf.usermodel.HSSFWorkbook; >import org.apache.poi.poifs.filesystem.POIFSFileSystem; >import org.apache.poi.ss.usermodel.Workbook; > >public class POITemplateCopyTest { > > /** > * @param args > * @throws IOException > */ > public static void main(String[] args) throws IOException { > InputStream is = new FileInputStream(new File("D:\\BugReport\\SourceTemplate.xlt")); > POIFSFileSystem poifs = new POIFSFileSystem(is); > HSSFWorkbook wb = new HSSFWorkbook(poifs); > is.close(); > > wb.cloneSheet(1); > > wb.write(new FileOutputStream(new File("D:\\BugReport\\TemplateTestCopy.xls"))); > System.out.println("Done"); > > } > >}
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 52300
:
28048
|
28049
| 28050 |
28067