ASF Bugzilla – Attachment 21218 Details for
Bug 44010
Support for non-row and column sheet types such as ChartSheet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
The source file
Bug_44010.java (text/plain), 1.41 KB, created by
nlonga
on 2007-12-03 03:17:15 UTC
(
hide
)
Description:
The source file
Filename:
MIME Type:
Creator:
nlonga
Created:
2007-12-03 03:17:15 UTC
Size:
1.41 KB
patch
obsolete
>import org.apache.poi.hssf.usermodel.HSSFWorkbook; >import org.apache.poi.poifs.filesystem.POIFSFileSystem; >import java.io.FileInputStream; >import java.io.FileOutputStream; > > >public class Bug_44010 >{ > public static void main(String[] args) > { > HSSFWorkbook hssfworkbook = null; > > //---------- > // with this workbook it is OK > //String workbookFileNameSrc = "bug_44010_OK.xls"; > > // with this workbook it is NOT OK > //String workbookFileNameSrc = "bug_44010_NOTOK.xls"; > //---------- > > String workbookFileNameSrc = args[0]; > > > // open the woorkbook > try > { > POIFSFileSystem fs = new POIFSFileSystem(new FileInputStream(workbookFileNameSrc)); > hssfworkbook = new HSSFWorkbook(fs); > } > catch(Exception exc) > { > System.out.println(exc.toString()); > return; > } > > System.out.println(""); > System.out.println("Ouverture du classeur " + workbookFileNameSrc +" ... OK"); > > // ... > > try > { > // write the woorksheet > String workbookFileNameDest = workbookFileNameSrc + "_AFTER_HSSF.xls"; > FileOutputStream fileOut = new FileOutputStream(workbookFileNameDest); > hssfworkbook.write(fileOut); > fileOut.close(); > > //this.hssfworkbook.write(new FileOutputStream(workbookFileNameDest)); > System.out.println("Ecriture du classeur " + workbookFileNameDest); > } > catch(Exception exc) > { > System.out.println(exc.toString()); > return; > } > } >}
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 44010
:
21214
|
21215
|
21216
|
21217
| 21218 |
21636
|
21637