Hello, I am strongly interested
by the improvement WORDSJSP-121 (Using Aspose exporters with the Web Services
of Jasper Report Server). I would like to export a DOCX file (OOXML file) with
the ASPOSE.WORD plugin for jasperreports, using the rest_v2 webservice. Could
you please tell me how to configure Jasperserver ( the
applicationContext-web-services.xml file I guess)? Thank you
This message was posted using Email2Forum by Tahir Manzoor.
Hi Alexandre,
Thanks for your inquiry.
Aspose.Words for JasperReports provides a number of parameters that affect the resulting Microsoft
Word document’s appearance. There are two ways of setting these
parameters’ values, depending on whether you export reports from
JasperReports or JasperServer (either directly or using Web Services).
Please read following article for your kind reference. We will add this article in Aspose.Words for JasperReports documentation soon.
Using Web Services
Aspose.Words for JasperReports v2.1.0 can be used with
JasperServer Web Services. Here is a description how to do this with
JasperServer Web Services sample application (which is included in JasperServer
distribution package):
-
Install Aspose.Words for JasperReports
-
Install jasperserver-ws-sample
application from \samples\java-webapp-sample
-
Replace 2 files inside root folder of this app by those
from demo\webservices folder in
Aspose.Words for JasperReports distribution package. Note: new code fragments are
included between lines containing Aspose.Words
for JasperReports START and Aspose.Words
for JasperReports END
-
Modify jasperserver/WEB-INF/applicationContext-web-services.xml
as described here (See step 5b).
-
Stop/Start
Jasper Server
-
Run http://localhost:8080/jasperserver-ws-sample
-
Browse to Reports,
then Samples and then select some
report, say “Employees”
-
In “Export
format” drop-down box select “XXX
via Aspose.Words”, where XXX is desired output format
-
Press [Run the
Report] button
-
Report download should start
Certainly it is possible to use any other standard (or your
own) client to produce reports from JasperServer Web Services.
Hello,
You said in step 4 “as described above in this document”. Please tell me in which document?
Thanks
Hi Alexandre,
Please accept my apologies for your inconvenience.
Thanks for your inquiry. Please check the step 5b from here:
https://docs.aspose.com/words/jasperreports/installation/