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

Free Support Forum - aspose.com

Aspose Doc format from PHP webservice

Hi,


The Aspose.words plugin for Doc , rtf formats works well from jasper Server with latest version.

Our PHP application uses Jasper reports via REST webservice. The new formats when given as ‘doc’ or ‘aw_doc’ or ‘awdoc’ gives error from jasper server - 'webservices.error.errorExportingReportUnitExportformat awdoc not supported or misconfigured

Any help regarding this issue would be of great help.
Thanks in Advance.

Hi Spurthi,

Thanks for your inquiry. It would be great if you please share some more detail about your scenario. We have not yet tested our components with PHP application using Jasper Reports via REST Web Services.

Please read the following article that explains how to integrate the exporter.
http://www.aspose.com/docs/display/wordsjasperreports/Installation

Moreover, 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).

Moreover, please read following article for your kind reference.

Using Web Services

As of v2.0.0 Aspose.Words for JasperReports 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 above in this document

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.

System Requirements

Aspose.Words for JasperReports requires the following
software to run:

  • Java 2 Platform
    Standard Edition 5.0 or higher
  • JasperReports 3.7.1 or
    higher (tested with 3.7.1 … 5.5.0)
  • JasperServer 3.7.1 or
    higher (if you want to use Aspose.Words for JasperReports with
    JasperServer)

<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>AR-SA</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
<w:UseFELayout/>
</w:Compatibility>
<w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<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”/>
</m:mathPr></w:WordDocument>
<![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";}

<![endif]–>

Hello Tahir Manzoor,


Thank you for the reply. I rechecked all the points with your reply.

The jasperserver-ws-sample also works fine for new formats. I think some additional configuration is needed for these formats to be supported via REST service.

It would be great if you can update that as well. For Jasper reports web service please check Jasper Wrapper for PHP here http://community.jaspersoft.com/wiki/php-client-sample-code

Thank you very much

Hi Spurthi,

Thanks for your inquiry.

I have logged a new ticket in our issue tracking system as WORDSJSP-139 to investigate the usage of Aspose.Words for Jasper Reports via REST web-service. Your request has also been linked to this issue and you will be notified as soon as it is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSJSP-139) have been fixed in this Aspose.Words for JasperReports update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.