How to export .txt file using JReport in java?

Hi all,

private void generateTEXTOutput(JasperPrint jasperPrint,)throws IOException, JRException {

try

{

String fName=filename+".txt";

JRTextExporter export = new JRTextExporter();

export.setParameter(JRExporterParameter.JASPER_PRINT,jasperPrint);

export.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, "textfile.txt");

export.exportReport();

}catch (Exception e) {

System.out.println(e);

}

I got this Exception.

"net.sf.jasperreports.engine.JRException:Character or page width must be specified"

How to rectify?

Plz., any one help me....

[646 byte] By [mohankumarperiaswamya] at [2007-10-2 20:16:34]
# 1
This is not a JasperReports Support Forum, but I guess you need to specify the character or page width first. RTFA.
CeciNEstPasUnProgrammeura at 2007-7-13 22:58:57 > top of Java-index,Java Essentials,Java Programming...
# 2
How to give page width?
mohankumarperiaswamya at 2007-7-13 22:58:57 > top of Java-index,Java Essentials,Java Programming...
# 3
Can any one give exact code
mohankumarperiaswamya at 2007-7-13 22:58:57 > top of Java-index,Java Essentials,Java Programming...
# 4
What part of "this is not JasperReports Support" didn't you understand?Repeat after me: "I am at Sun's forum. People here neither know or care about 3rd party software."
CeciNEstPasUnProgrammeura at 2007-7-13 22:58:57 > top of Java-index,Java Essentials,Java Programming...
# 5

hey i know....

just i vant to know from this forum...but u guys are pissed me out....

this is too bad..

i going to write the mail to this forum head....in future any of the topic is not related..u should have tell me before to continue further quetions...

anyway this is the worst insult i am feeling....

Thanks for all of ur support for me....hereafter i am not going to post any mails to this forum...

all the best... f....k

Cheers

Mad Mohan

mohankumarperiaswamya at 2007-7-13 22:58:57 > top of Java-index,Java Essentials,Java Programming...