Hi there,

 

I am using iText to generate a RTF report and it works quite well.

 

My problem is I would like to write data which is already RTF
"formatted" in the database.

Consequently I wonder how I could write this String data already
containing RTF format tags to my RTF document.

Or more specifically to a cell of the table of my RTF document.

 

Here is a simplified example of what I'm trying to do:

 

FileOutputStream out = new FileOutputStream();

Document reportDoc = new Document();

rtfWriter = RtfWriter2.getInstance(reportDoc, out);

reportDoc.open();

 

String data = "\\par some text > \\fs24 some big text > \\fs24\\par";

 

com.lowagie.text.Table myTable = new com.lowagie.text.Table myTable(1);

 

myTable.addCell(new Chunck(data)); // Here I would like to find a way to
write the data as I received instead of having it escaped so the rtf
tags are written 

 

reportDoc.add(myTable);

.

.

.

 

Thank you for helping me to solve this problem.

 

Julien Gordenne

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to