GNUe:Reports:Standard goals: * Templating/Styles * Relational positioning/sizing * Charting * Cross-tabulation * Conditional Text --------------------------------------------------------------------- <author> <printdate> <parameters> </prolog> <titlepage> ?? ... ? <trailerpage> ?? ... ? <reportheader> <left/><center/><right/> <reportfooter> <left/><center/><right/> <pageheader omitfirst="Y|N" omitlast="Y|N"> <left/><center/><right/> <pagefooter omitfirst="Y|N" omitlast="Y|N"> <left/><center/><right/> <columnar columns="2"> <section positioning="below|right|marginleft|margintop|absolute|named" relation="<sectionname>|<formanchor>" mode="freeflow|tabular|crosstab|(bar|pie|line)chart" marginleft="<measurement>|auto" marginright="<measurement>|auto" margintop="<measurement>|auto" marginbottom="<measurement>|auto" spacingvert="<measurement>|auto" spacinghoriz="<measurement>|auto" columns="2" break="never|always|conditional" breaklevel="page|column" style="..." # The following *should* typically only be defined with style=, not by attributes # But the "styles" must have something to "implement" bordertop="<measurement>|auto" borderleft="<measurement>|auto" borderbot="<measurement>|auto" borderright="<measurement>|auto" bordervert="<measurement>|auto" borderhoriz="<measurement>|auto" bordercolor="10%|#e0e0e0e|gray" bgcolor="10%|#e0e0e0e|gray" > <header repeat="none|page|column|all"/> <footer> <colheader repeat="none|page|column|all"/> <colfooter> <details repeat="none|page|column|all" shaderows="3" shadebackground="10%" > <section .... > <row> <cell align="left"> Text <image inline="Y|N" src="file://somewhere/"><base64>(encoded image)</base64></image> <barcode format="EAN13" includeText="Y|N">1234323422346</barcode> <summary> <row> <cell align="left" underline="single|double|none" overline="single|double|none"> --------------------------------------------------------------------- Example of a section.... <section positioning="below" break="never|always|conditional" breaklevel="page|column" columns="2" shaderows="3" border="1"> <header/> <center>Same-store Sales by Quarter</center> <footer> <left>* Does not include employee purchases</left> <colheader/> <rec> <cell align="left">Quarter 1</cell><cell>24</cell> </rec> <colfooter> <rec> <details/> <rec> <cell align="left">Division 1</cell><cell>12</cell> </rec> <rec> <cell align="left">Division 2</cell><cell>12</cell> </rec> <summary> <rec> <cell align="left">Total</cell><cell underline="double" overline="single">24</cell> </rec> --------------------------------------------------------------------- Section as a barchart <section mode="barchart" columns="2"> <colheader> <rec><cell>Flavor</cell><cell>Units*</cell></rec> </colheader> <details> <rec><cell>Foobar</cell><cell>23</cell></rec> <rec><cell>Toobar</cell><cell>12</cell></rec> <rec><cell>Souffle</cell><cell>22</cell></rec> </details> </section> ................ Flavor Units Foobar ============== Toobar ======= Souffle ============= --------------------------------------------------------------------- Section as a stackedbarchart <section mode="stackedbarchart" columns="3"> <header>Total Consuption</header> <colheader> <rec><cell>Category</cell><cell>Flavor</cell><cell>Units*</cell></rec> </colheader> <details> <rec><cell>Cat 1</cell><cell>Foobar</cell><cell>23</cell></rec> <rec><cell>Cat 1</cell><cell>Toobar</cell><cell>12</cell></rec> <rec><cell>Cat 1</cell><cell>Souffle</cell><cell>22</cell></rec> <rec><cell>Cat 2</cell><cell>Foobar</cell><cell>19</cell></rec> <rec><cell>Cat 2</cell><cell>Toobar</cell><cell>6</cell></rec> <rec><cell>Cat 2</cell><cell>Souffle</cell><cell>11</cell></rec> <rec><cell>Cat 3</cell><cell>Foobar</cell><cell>13</cell></rec> <rec><cell>Cat 3</cell><cell>Toobar</cell><cell>6</cell></rec> <rec><cell>Cat 3</cell><cell>Souffle</cell><cell>11</cell></rec> </details> <footer>* in Thousands</footer> </section> ................ TOTAL CONSUMPTION Category Units* |----|----|----|----|----|----|----|----| Cat 1 ::::::::::::::=======------------- Cat 2 ::::::::::::====------ Cat 3 :::::::::::::::::====------ [ * in Thousands ] .-- Flavor Key ----. | :: Foobar | | == Toobar | | -- Souffle | |__________________| --------------------------------------------------------------------- Section as a crosstab <section mode="crosstab" columns="3"> <header>Total Consuption</header> <colheader> <rec><cell>Category</cell><cell>Flavor (Units)</cell><cell></cell></rec> </colheader> <details> <rec><cell>Cat 1</cell><cell>Foobar</cell><cell>23</cell></rec> <rec><cell>Cat 1</cell><cell>Toobar</cell><cell>12</cell></rec> <rec><cell>Cat 1</cell><cell>Souffle</cell><cell>22</cell></rec> <rec><cell>Cat 2</cell><cell>Foobar</cell><cell>19</cell></rec> <rec><cell>Cat 2</cell><cell>Toobar</cell><cell>6</cell></rec> <rec><cell>Cat 2</cell><cell>Souffle</cell><cell>11</cell></rec> <rec><cell>Cat 3</cell><cell>Foobar</cell><cell>13</cell></rec> <rec><cell>Cat 3</cell><cell>Toobar</cell><cell>6</cell></rec> <rec><cell>Cat 3</cell><cell>Souffle</cell><cell>11</cell></rec> </details> <footer>* in Thousands</footer> </section> ................ Category Flavor (Units) Foobar Toobar Souffle Cat 1 23 12 22 Cat 2 19 6 11 Cat 3 13 6 11 ------ Issues * Doesn't handle multiple cell values Although, if columns > 3, then cell size can be (# columns - 2) * Doesn't handle horizontal summaries (Could be: <rec><cell>Cat 3</cell><cell>Total</cell><cell>57</cell></rec>) --------------------------------------------------------------------- Section as a freeflow, #1 <section mode="freeflow"> <details> <p> <t style="field">12/30/02</t> </p> <p suppressBlankLines="Y"> <t style="data">White Station Tooling</t><br> <t style="data">Jason Cater</t><br> <t style="data">123 N Main St</t><br> <t style="data"></t><br> <t style="data">Memphis</t>, <t style="data">TN</t> <t style="data">38117</t><br> </p> <p> Dear <t style="data">Jason</t>: </p> <p>The enclosed invoice is for orders received with your purchase order #<t style="data">1234</t>, dated <t style="data">12/31/2002</t>. Please remit payment of <t style="data">$1,234.00</t> directly to <t style="emphasised">Acme Corporation</t> using the enclosed return envelope. </p> <p> We thank you for the opportunity to serve your organization. </p> <p> Jones En, II<br> Account Representative<br> </p> </details> </section> ................ 12/30/02 White Station Tooling Jason Cater 123 N Main St Memphis, TN 38117 Dear Jason: The enclosed invoice is for orders received with your purchase order #1234, dated 12/31/2002. Please remit payment of $1,234.00 directly to Acme Corporation using the enclosed return envelope. We thank you for the opportunity to serve your organization. Jones En, II Account Representative ---------------------------------------------------------------------