We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

WORDSJSP-121 : needed configuration for "Using Aspose exporters with the Web Services of Jasper Report Server"

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

<!–[if gte mso 9]>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";}


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):

0) Install Aspose.Words for JasperReports

1) Install jasperserver-ws-sample
application from \samples\java-webapp-sample

2) 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

4) Modify jasperserver/WEB-INF/applicationContext-web-services.xml
as described here (See step 5b).

5) Stop/Start
Jasper Server

6) Run http://localhost:8080/jasperserver-ws-sample

7) Browse to Reports,
then Samples and then select some
report, say “Employees”

8) In “Export
format” drop-down box select “XXX
via Aspose.Words”, where XXX is desired output format

9) Press [Run the
Report] button

10) Report download should start

Certainly it is possible to use any other standard (or your
own) client to produce reports from JasperServer Web Services.


You said in step 4 “as described above in this document”. Please tell me in which document?


Hi Alexandre,

Please accept my apologies for your inconvenience.

Thanks for your inquiry. Please check the step 5b from here: