ASF Bugzilla – Attachment 18311 Details for
Bug 39607
[PATCH] NullPointerException in RtfTableRow : tableBorderAttributes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
source of TestFop.java
TestFop.java (text/plain), 1.24 KB, created by
Julien Aymé
on 2006-05-18 11:20:24 UTC
(
hide
)
Description:
source of TestFop.java
Filename:
MIME Type:
Creator:
Julien Aymé
Created:
2006-05-18 11:20:24 UTC
Size:
1.24 KB
patch
obsolete
>package test; > >import java.io.File; >import java.io.FileWriter; >import java.io.IOException; > >import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfDocumentArea; >import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfFile; >import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfParagraph; >import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfSection; >import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTable; >import org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTableRow; > >public class TestFop { > > public static void main(String[] args) { > try { > FileWriter writer = new FileWriter(new File("C:/test.doc")); > RtfFile f = new RtfFile(writer); > > RtfDocumentArea doc = f.startDocumentArea(); > > RtfSection section = doc.newSection(); > > RtfParagraph paragraph = section.newParagraph(); > paragraph.newText("Testing fop - rtf module - class RtfTableRow"); > paragraph.close(); > > RtfTable table = section.newTable(null); > RtfTableRow row = table.newTableRow(); > row.newTableCell(2000).newParagraph().newText("blah"); > row.newTableCell(5000).newParagraph().newText("doubleBlah"); > row.close(); > table.close(); > section.close(); > doc.close(); > f.flush(); > > } catch (IOException ioe) { > ioe.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 39607
: 18311 |
18312