ASF Bugzilla – Attachment 27400 Details for
Bug 51675
Background images cause problems in HSSF spreadsheet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Java source to replicate
PoiBackgroundImageTest.java (text/x-java), 857 bytes, created by
john mcteague
on 2011-08-18 09:46:38 UTC
(
hide
)
Description:
Java source to replicate
Filename:
MIME Type:
Creator:
john mcteague
Created:
2011-08-18 09:46:38 UTC
Size:
857 bytes
patch
obsolete
>package test; > >import java.io.FileInputStream; >import java.io.FileOutputStream; > >import org.apache.poi.ss.usermodel.Cell; >import org.apache.poi.ss.usermodel.Row; >import org.apache.poi.ss.usermodel.Sheet; >import org.apache.poi.ss.usermodel.Workbook; >import org.apache.poi.ss.usermodel.WorkbookFactory; > >public class PoiBackgroundImageTest { > > static void doTest(String filename) throws Exception{ > Workbook wb = WorkbookFactory.create(new FileInputStream(filename)); > > Sheet sheet = wb.getSheet("Sheet1"); > Row row = sheet.createRow(1); > Cell cell = row.createCell(1); > cell.setCellValue(123.45); > > wb.write(new FileOutputStream("mod-"+filename)); > } > /** > * @param args > */ > public static void main(String[] args) throws Exception{ > doTest("poi-background-test.xls"); > > doTest("poi-background-test.xlsx"); > } > >}
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 51675
: 27400 |
27401
|
27402