Print HTML Templates 

The cube print or export is based on predefined HTML Templates. With this option you can create, modify or delete existing templates.

 

In the top part of the dialog appears the existing templates list. Choose a template to show its name and its HTML code in the bottom's dialog part.

To create a new template, you only have to write its name in the name text fields and its HTML code to use below. You can use any of the HTML elements explained below and press the New button. The Update button is used to modify the text of the template and the Delete button to delete an existing template. If you erase all the templates, it will be used a default template with it's code identical to the default template.

The templates are stored in the windows registry, so their length is bound to 32767 characters.

You can use any of the following elements special to this application. You shouldn't use this elements in HTML pages that are not part of these HTML Templates.

  • <$CAPTION> : Cube's title
  • <$LOGO> : Image file assigned in Page Setup dialog
  • <$COMMENTS1> : Text assigned in the  Page Setup dialog
  • <$COMMENTS2> : Text assigned in the Page Setup dialog
  • <$CHART> : Inserts the chart
  • <$HEADINGS> : Prints the heading area
  • <$DATA >: Prints the data area
  • <$PORTFOLIO>: Inserts the portfolio content in the template. Only applies when printing and exporting portfolios.
  • <$PORTFOLIOTITLE>: Inserts the portfolio's title given in the portfolio edit dialog. Only applies when printing and exporting portfolios.
  • <$PORTFOLIOCAPTION>: Inserts the name of each portfolio page. Only applies when printing and exporting portfolios.
  • <$INDEX>: Inserts a table with links to each portfolio page. Only applies when printing and exporting portfolios.

Notes about the HTML elements you can use:

  • Only the Export to HTML doesn't impose restrictions in the HTML you can use and is exported the way it is with the exception of the special elements mentioned above
  • All the text must be contained between  <HTML> and </HTML>
  • You can't assign the <$CHART>, <$HEADINGS>, <$DATA>, <$PORTFOLIO>, <$PORTFOLIOTITLE>, <$PORTFOLIOCAPTION> and <$INDEX> special elements inside the <TABLE> HTML element
  • The code between  <HEAD> and </HEAD> is ignored
  • You can assign a background=background image to the <BODY> < /STRONG> element,  for example:
    <BODY background="c:\abc\image.jpg">
  • Everything between the  <PRE> and the  </PRE> is printed in a fixed size font
  • Between the  <P> element, you can sign a RIGHT, LEFT (default) or CENTER alignment, for example:
    <P align=center>
  • You can apply list sequences like  <OL> or <UL> with their respectively entries  <LI> ... </LI> . For example:
    <UL>
     <LI>
      field1
     </LI>
     <LI>
      field2
     <LI>
    </UL>
  • The elements  <B> .. </B>, <STRONG> .. </STRONG>, <I> .. </I>, <U> .. </U>, <STRIKE> .. </STRIKE>, <SUB> .. </SUB>, <SUP> .. </SUP>, <BR>, <HR> are recognized
  • The  <FONT> .. </FONT> element can be used to change the printing font, with its parameters face=, size=, color= to specify font, size and color respectively, for example:
    <FONT face=Arial size=10 color= #333333>
  • To insert images, use  <IMG>  with the src= , width=, height=  parameters like: 
    <IMG src="c:\abc\imagen.jpg" width=100 height=200>
  • Use <TABLE...> to insert text tables. The HTML  <TABLE> element can use the border=  and width=  elements, like in: 
    <TABLE border=1 width=100%>
    Each table row must be separated between  <TR> and </TR>  and each row column between  <TD> and </TD> . The <TD> parameters that can be used are valign= (CENTER, TOP, BOTTOM), align= (LEFT, RIGHT, CENTER), bgcolor= background color and colspan= number of columns to set the number of columns of this value. Inside each column you only can use the following elements: <FONT>, <B>, <STRONG>, <I>, <U> and <<BODY> >. A little example would be:
  • <TABLE border=0 width=100%>
     <TR>
      <TD>
       <B>
        Field1
       </B>
      </TD>
      <TD>
       <B>
        Field2
       </B>
      </TD>
      <TD>
       <B>
        Field3
       </B>
      </TD>
     </TR>
     <TR>
      <TD colspan=2>
       total 
      </TD>
      <TD align=right>
       0
      </TD>
     </TR>
    </TABLE>
    
  • Any other HTML <...> element will be ignored, except when export to HTML.

The following HTML special characters are also recognized: &nbsp;, &amp;, &lt;, &gt;, &copy;, &reg;, &trade;  and &#number; character.