ASF Bugzilla – Attachment 12370 Details for
Bug 30540
HSSFSheet.setRowBreak throws NullPointerException
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
The test harnest program
test.java (text/plain), 684 bytes, created by
KH Lim
on 2004-08-09 13:35:46 UTC
(
hide
)
Description:
The test harnest program
Filename:
MIME Type:
Creator:
KH Lim
Created:
2004-08-09 13:35:46 UTC
Size:
684 bytes
patch
obsolete
>import org.apache.poi.hssf.usermodel.*; >import org.apache.poi.poifs.filesystem.POIFSFileSystem; >import java.io.*; > >public class test { > > public static void main(String args[]) { > try { > // Read file > File inFile = new File( args[0] ); > FileInputStream fileInput = new FileInputStream(inFile); > POIFSFileSystem excelFile = new POIFSFileSystem(fileInput); > HSSFWorkbook wb = new HSSFWorkbook(excelFile, true); > fileInput.close(); > > HSSFSheet s = wb.getSheetAt(0); > s.setRowBreak(1); > > // Write output > FileOutputStream out = new FileOutputStream( args[1] ); > wb.write(out); > out.close(); > } catch (Exception e) { > System.out.println( e ); > } > } > >} >
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 30540
: 12370 |
12371
|
12372