Debug log:

 
                                

Reports

Using the same technique as in forms, reports may also be declared, supporting multiple paper formats, headers etc. By using the XML-markup, it's much easier to reach a professional level of the PDF-apperance.

 

Dynamic parsing

Here's some rows from the declaration of the shown report, note how dynamic values are used using $$s|varName$$ that allows for database-interaction or any other realtime data.

 

<content type="pdf/report2" filename="$$s|filename$$" utf8="yes" pagesize="$$s|paperSize$$" margins="20,20">
    <format name="root" font="DejaVu:9" textcolor="#000" drawcolor="#000"/>
    <format name="header" font="DejaVu:9" textcolor="#666" drawcolor="#999" drawdash="0.05,0.8"/>
    <format name="header.title" font="DejaVu:14:B" textcolor="#C00"/>
    <format name="header.subtitle" font="DejaVu:14:B" textcolor="#000"/>
    <format name="header.id" font="DejaVu:10" textcolor="#000"/>
    <format name="header.code" font="Helvetica:8" textcolor="#666" drawcolor="#666" drawdash="0.1,0.8"/>
### HEADER ###
    <header>
        <cell xy="20,7.5" wh="50,10" text="RIG FACTS" format=".title"/>
        <cell xy="50a,7.5a" wh="50,10" text="/CUSTOMER AND HULL INPUTS" format=".subtitle"/>
        <cell xy="148,0.5r" wh="50,8" text="Page: $$content|pageNo$$/$$content|pages$$" align="R" format=".id"/>
        <cell xy="148,5r" wh="50,8" text="Rigfact No: $$s|RigFactNoTxt$$" align="R" format=".id"/>
        <textwithdirection xy="19,130" wh="48,10" text="Print date: $$s|today$$" format=".code" direction="u"/>
        <textwithdirection xy="19,95" wh="48,10" text="DOC ID: $$s|docID$$"  format=".code" direction="u"/>
    </header>
### PAGE 1 ###
    <page>
        <grid xy="0,0" rows="28" cols="18" noborder="no" drawcolor="#DDD"/>
# CUSTOMER AND HULL FACTS
        <cursor xy="0,0" />
        <cell xy="20a,12a" wh="100,10" text="YACHT HULL DATA REQUIRED FOR DIMENSIONING OF SPARS AND STANDING RIGGING" />
        <panel xy="0,9r" wh="178,22">
            <cell xy="0,0" wh="100,6" text="IDENTIFICATION" format=".title"/>
            <field xy="0,6" wh="25,6;55,6" text="Yacht / Model:;$$s|BoatName$$" align="l;l;l"/>
            <field xy="0,7r" wh="25,6;55,6" text="Dealer / Yard:;$$s|Dealer$$" align="l;l;l"/>
            <cell xy="89,8" wh="25,6" text="End customer (optional):"/>
            <cell xy="89,5r" wh="80,6" text="$$s|EndCustomer$$" format="field.value"/>
        </panel>
+