Recent posts:
Malte has not published any posts yet.
Recent replies:

Hi Marc,

I came across your post trying to get HTML markup correctly formatted into a Zen Report PDF. We did manage to get this done using a <write/> element's content attribute report-wide. This time, we need to get variable markup by a report data node - hence we need to use an <item/> element.

Unforunately we cannot get this to work, neither via copyhtml nor via copyxml (and combinations of the two).

Should not at least one of the alternatives below generate the desired bold typing of the parameters MYMARKUP or MYXML?

Thanks for looking into this!

Class test.ZenReportItemHtml Extends %ZEN.Report.reportPage

Parameter DEFAULTMODE = "pdf";

Parameter MYMARKUP = "<p><b>Testing HTML markup</b></p>";

Parameter MYXML = "<fo:block font-weight='bold'><fo:inline>Testing XML FO</fo:inline></fo:block>"; 

XData ReportDefinition [ XMLNamespace = "" ]
<report xmlns="" name="Test" runonce="true">
     <element name="MyMarkup" expression="..#MYMARKUP" />
     <element name="MyXML" expression="..#MYXML" /> 

XData ReportDisplay [ XMLNamespace = "" ]
<report xmlns="" name="Test">     
    <document width="8.5in" height="11in" marginLeft="1.25in"
      marginRight="1.25in" marginTop="1.0in" marginBottom="1.0in">
        <line style="dotted" />
        <div style="font-weight:bold;"><item value="markup plain"/></div>
        <div><item field="MyMarkup" /></div>         

        <line style="dotted" />
        <div style="font-weight:bold;"><item value="markup copyhtml=true"/></div>
        <div><item field="MyMarkup" copyhtml="true" /></div>         

        <line style="dotted" />
        <div style="font-weight:bold;"><item value="markup copyhtml=true createtable=true"/></div>
        <div><item field="MyMarkup" copyhtml="true" createtable="true" /></div>         

        <line style="dotted" />
        <div style="font-weight:bold;"><item value="markup copyhtml86=true"/></div>
        <div><item field="MyMarkup" copyhtml86="true" /></div>         

        <line style="dotted" />
        <div style="font-weight:bold;"><item value="markup copyhtml=true copyhtml86=true"/></div>
        <div><item field="MyMarkup" copyhtml="true" copyhtml86="true" /></div>         

        <div style="margin-top:2em;"></div>

        <line style="dotted" />
        <div style="font-weight:bold;"><item value="xml plain"/></div>
        <div><item field="MyXML" /></div>         <div style="margin-top:2em;"></div>

        <line style="dotted" />
        <div style="font-weight:bold;"><item value="xml copyxml=true"/></div>
        <div><item field="MyXML" copyxml="true" /></div>     </body> </report>


Hi Peter, thanks for your articles. I am wondering whether you were able to make further progress on your replacement project. Have you got any updates worth sharing?

Thanks + regards - malte.

Malte has no followers yet.
Malte has not followed anybody yet.
Global Masters badges: