Hi,
I am trying to import another rtf file into the current template.
This is the tag that I use - <wr:import value="'C:/Progra~1/Windward Studios/Windward Reports Java Engine/test/common/OnlyHeader.rtf'"/>
But when I try to run it with the RunReport API I get the attached error.
Template: C:\Anupriya\3. Policy Schedule and Rating Schedule for MOP.rtf
Report: C:\Program Files\Windward Studios\Windward Reports Java Engine\test\Sc
hedule.pdf
XML datasource: C:/Anupriya/newMOP1.xml
Error: File I/O error reading: 'file://C:/Anupriya/OnlyHeader.rtf'
net.windward.tags.TagException: File I/O error reading: 'file://C:/Anupriya/Only
Header.rtf'
at net.windward.xmlreport.CI.getCharset(Unknown Source)
at net.windward.xmlreport.CI.I(Unknown Source)
at net.windward.document.Element.I(Unknown Source)
at net.windward.xmlreport.CI.I(Unknown Source)
at net.windward.xmlreport.ProcessReport.processData(Unknown Source)
at net.windward.xmlreport.RunReport.main(Unknown Source)
Exception in thread "main" net.windward.tags.TagException: File I/O error readin
g: 'file://C:/Anupriya/OnlyHeader.rtf'
at net.windward.xmlreport.CI.getCharset(Unknown Source)
at net.windward.xmlreport.CI.I(Unknown Source)
at net.windward.document.Element.I(Unknown Source)
at net.windward.xmlreport.CI.I(Unknown Source)
at net.windward.xmlreport.ProcessReport.processData(Unknown Source)
at net.windward.xmlreport.RunReport.main(Unknown Source)
It works fine when I run it by using the Autotag>Reports option in the Word toolbar.
Another issue is:
I am making some checks like this in the template -
<wr:forEach select="/MasterPolicy/PolicyList/Policy" var="policy"><wr:set value="${policy.PolicyAttributes/ProductCode}" var="policycode"/><wr:if test="'${policycode}'=='MCO'">
It works when I use the toolbar to run it. But does not display anything when I use RunReport API.
Please let us know the solution for these at the earliest.
Thnx,
Anu