Hello,
yes, I specify the document element:
...
XData ReportDisplay [ XMLNamespace = "
http://www.intersystems.com/zen/report/display" ]
{
<report xmlns="
http://www.intersystems.com/zen/report/display"
name="MyReport" title="Title">
<document width="29.7cm"
height="21.0cm"
marginLeft="1.5cm"
marginRight="1.5cm"
marginTop="1.0cm"
marginBottom="1.0cm"
headerHeight="1.5cm">
</document>
<pageheader>
<p style="text-align:center;text-decoration:underline;font-size:18;font-weight:bold">
Text1
</p>
<p style="text-align:center;text-decoration:underline;font-size:11;font-weight:bold">
Text2
</p>
<item special="page-number-/" style="text-align:right;font-size:11;">
<caption value="Page " style="text-align:center;"/>
</item>
</pageheader>
<body>
<group name="SalesRep" pagebreak="1">
<table orient="row" width="10cm">
<item field="@name" width="5cm">
<caption value="Sales Rep:"/>
</item>
<item field="@date" width="5cm">
<caption value="Abrechnung per: "/>
</item>
<item field="total" formatNumber="##0">
<caption value="Total Value of Sales:"/>
</item>
<item field="average" formatNumber="##0.00">
<caption value="Average Individual Sale:"/>
</item>
<item field="clients">
<caption value="Number of Clients:"/>
</item>
</table>
<line></line>
<table orient="col" group="SalesTo" altcolor="#FFDFDF" width="13cm">
<item field="customer" width="6cm">
<caption value="Customers:"/>
</item>
<line></line>
<item field="@date" width="4cm" style="text-align:center;">
<caption value="Date of Sale:" style="text-align:center;"/>
</item>
<item field="@amount" width="3cm" style="text-align:right;">
<caption value="Nb of Sales:" style="text-align:right;"/>
</item>
</table>
<table orient="row" width="13cm">
<item field="total" style="text-align:right;" width="3cm">
<caption value="Total" style="text-align:right;" width="10cm"/>
</item>
</table>
<line></line>
</group>
</body>
</report>
}
...
I call the report by browser with $MODE=pdf.
I want to create the report with a header contained the report title, subtitle (both centered) and a page number. I get the page number but without defined style (I get it in default style) and missing caption value. Each other items are well printed.
News for Newbies, christian
>>> "Jonathan Levinson" <
Jonathan...@intersystems.com> 01.12.2008 23:16 >>>