Hello turbine experts,
i wanna build some reports on my web. I'm considered using iText. Does anybody
know how to use iText with TDK ...
i already try made a simple Screen : Tes.java
package org.ncs.jts.modules.screens;
import org.apache.velocity.context.Context;
import org.apache.turbine.util.RunData;
import org.apache.turbine.modules.actions.VelocityAction;
import org.apache.torque.util.Criteria;
import java.io.FileOutputStream;
import java.io.IOException;
import com.lowagie.text.*;
import com.lowagie.text.pdf.PdfWriter;
public class Tes extends SecureScreen
{
public void doBuildTemplate(RunData data, Context context)
{
Document document = new Document();
try {
PdfWriter.getInstance(document, new FileOutputStream("ChapTes.pdf"));
document.open();
document.add(new Paragraph("Hello World"));
}
catch(Exception de) {
data.setMessage(de.getMessage());
context.put("pesan",de.getMessage());
}
document.close();
}
}
There is no exception thrown ... and the pesan context is also null when i try
to call it with Tes.vm it just display $pesan
Can any body help me or suggest me with others PDF report designer ?
Thank You
Amri Hidayat
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]