JasperReport - Text Export Error

Hi all,

I am working with JasperReport in my web application (generating pdf files) but now my client wants a Text file output. I have tried with the JRTextExporter but it generates just 12 blank lines in the txt file :( .. (I have tried with the rtf exporter and it gives me a blank file too)!!!.

I am using the jasperreports-1.2.4.jar

PLEASE HELP ME, because I am getting upset for this.

My code is:
JRTextExporter exporter = new JRTextExporter();
exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "c:\borra1.txt");
exporter.setParameter(JRTextExporterParameter.CHARACTER_WIDTH, new Integer(200));
exporter.setParameter(JRTextExporterParameter.CHARACTER_HEIGHT, new Integer(50));
exporter.exportReport();


Thanks in advance,
Yaddif

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion