Search
Tuesday, January 06, 2009 ..:: Forum ::.. Register  Login
 
  Forum  Programming  Java Engine  Issue with using import and conditional tags,
Previous Previous
 
Next Disabled
New Post 7/21/2008 9:21 PM
  Anupriya
1 posts
No Ranking


Issue with using import and conditional tags, 

Hi,

I am trying to import another rtf file into the current template.

This is the tag that I use - <wr:import value="&apos;C:/Progra~1/Windward Studios/Windward Reports Java Engine/test/common/OnlyHeader.rtf&apos;"/>

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="&apos;${policycode}&apos;==&apos;MCO&apos;">

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

 
Previous Previous
 
Next Disabled
  Forum  Programming  Java Engine  Issue with using import and conditional tags,
Membership Membership:
Latest New User Latest: GrahamA
New Today New Today: 0
New Yesterday New Yesterday: 0
User Count Overall: 56

People Online People Online:
Visitors Visitors: 1
Members Members: 0
Total Total: 1

Online Now Online Now:
All contents copyright (c) 2002 - 2008 by Windward Studios, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement