-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JasperViewer on the server machine and not on the client pc
PostPosted: Thu Sep 16, 2010 9:00 am 
Newbie

Joined: Mon Jul 05, 2010 5:55 am
Posts: 3
Hello everyone, I hope someone could help me with this bug ...
why if I want to generate a report on a client machine Viewer JasperViewer appears on the server machine and not on the client machine?
I use the following code:

Code:
String webRoot = servletContext.getRealPath("/COMPTA");
fileXml = new File(webRoot + "\\reports\\balance_generale.jrxml");
JasperDesign jasperDesign = JRXmlLoader.load(fileXml);
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, model, connection);
JasperViewer.viewReport(jasperPrint, false);
JasperExportManager.exportReportToPdfFile(jasperPrint, par.getType_rapport() + ".pdf");


thank you in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.