Re: Link to dynamic pdf (jasperreports)

2007-12-07 Thread Newgro

Hello lizz,

i use the JRPdfResource this way. On bottom i added the output from the
sysouts. This is exactly the path where my jasper file is located. But it's
still empty. Can i output anything else, so that i see my mistake?

ServletContext context = ((WebApplication)
getApplication()).getServletContext();
final File reportFile = new File(context.getRealPath(/reports/booking
confirmation.jasper));
System.out.println(reportFile.getAbsolutePath());
try {
  System.out.println(reportFile.getCanonicalPath());
} catch (IOException e) {
  e.printStackTrace();
}
final JRResource pdfResource = new JRPdfResource(reportFile);
Link pdf = new ResourceLink(pdf, pdfResource) {
  public void onClick() {
super.onClick();
// do some additional stuff
  }
};

The output is
14:41:50,041 INFO  [STDOUT]
C:\Programme\jboss-4.2.2.GA\server\default\.\tmp\deploy\tmp58981frontend-exp.war\reports\booking
con
firmation.jasper
14:41:50,041 INFO  [STDOUT]
C:\Programme\jboss-4.2.2.GA\server\default\tmp\deploy\tmp58981frontend-exp.war\reports\booking
confi
rmation.jasper

Thanks 4 your help
Per
-- 
View this message in context: 
http://www.nabble.com/Link-to-dynamic-pdf-%28jasperreports%29-tf4936362.html#a14212787
Sent from the Wicket - User mailing list archive at Nabble.com.


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



Re: Link to dynamic pdf (jasperreports)

2007-12-06 Thread German Morales
Hi,

Have you seen this other thread?
http://www.nabble.com/wicket-File-downlaod-tf4874269.html#a13946961

There i've made some suggestions for dynamic generated pdf, with working
code.

Again, i don't know anything of jasper reports, but the person asked that
time liked it.

Also there is in the code the needed call to make it work with the
download dialog.

Bye,

German


It seems that Newgro wrote:

 Is this really unsolvable? Please can someone give me a hint?

 Thanks
 Per
 --
 View this message in context:
 http://www.nabble.com/Link-to-dynamic-pdf-%28jasperreports%29-tf4936362.html#a14191604
 Sent from the Wicket - User mailing list archive at Nabble.com.



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