Thanks for the code snippet. This is what i wanted.
Now i could able to export that file to excel.

Thanks again.
Laxmi

--- Pankaj  Bhatnagar <[EMAIL PROTECTED]>
wrote:
> It's very simple :
> 
> Just replace the %jrPrintFilename% and
> %outputFilename% with the actual file names in the
> following code :
> <CODE>
> JasperPrint jasperPrint = (JasperPrint)
> JRLoader.loadObject(%jrPrintFilename%);
> JRXlsExporter exporter = new JRXlsExporter();
>
exporter.setParameter(JRExporterParameter.JASPER_PRINT,
> jasperPrint);
>
exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME,
> %outputFilename%);
> exporter.exportReport();
> </CODE>
> 
> -HTH
> Pankaj Bhatnagar
> 
> On Fri, 13 May 2005 U K Laxmi wrote :
> >Have you experimented exporting jasper Reports to
> >Excel format? If so, pls give me the API'syou have
> >used?
> >
> >Thank you.
> >Laxmi
> >
> >--- "Raghupathy,Gurumoorthy"
> ><[EMAIL PROTECTED]> wrote:
> > > In ireport change the format fro mthe menu
> > >
> > >           From Build Menu check PDF preview.
> > >
> > > Regards
> > > Guru
> > >
> > > -----Original Message-----
> > > From: U K Laxmi [mailto:[EMAIL PROTECTED]
> > > Sent: 13 May 2005 09:13
> > > To: Tomcat Users List
> > > Subject: tomcat exits after the JasperReport
> window
> > > is closed
> > >
> > >
> > > I'm just started using JasperReports along with
> > > iReport to generate reports for my web
> application.
> > > I'm using apache+tomcat as my web server and
> > > JSP+Html
> > > as my web development technology.
> > >
> > > I've created a sample report using JasperReports
> &
> > > Jsps. When i click on the hyperlink, it shows
> the
> > > report in jasper viewer. But once i close jasper
> > > viewer, my tomcat exits.
> > >
> > > I'm using tomcat 5.5.7 and apache 2.0.52.
> > >
> > > Is anyone know what is causing the problem? Pls
> > > help.
> > >
> > > I've one more requirement. When the report
> button is
> > > clicked, report is shown in Jasper Viewer and
> html
> > > version of that report is generated and stored
> in
> > > some
> > > directory as a html file. I want the HTML report
> > > file
> > > to be shown when the report button is clicked.
> How
> > > can
> > > this be achieved? If this is done, i guess the
> > > earlier
> > > problem gets solved.
> > >
> > > Anyone has any ideas, pls inform.
> > >
> > > Thanks.
> > >
> > >
> > >
> > > Discover Yahoo!
> > > Have fun online with music videos, cool games,
> IM
> > > and more. Check it out!
> > > http://discover.yahoo.com/online.html
> > >
> > >
>
>---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
>
>---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >Yahoo! Mail
> >Stay connected, organized, and protected. Take the
> tour:
> >http://tour.mail.yahoo.com/mailtour.html
> >
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> 
> 
> 


                
__________________________________ 
Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone. 
http://mobile.yahoo.com/learn/mail 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to