Accessors for class IliHTMLReporter

Properties

Methods

Description

The IliHTMLReporter class defines a gadget that can be used to generate an HTML document containing the data of a data source. You can specify if you want a table of contents and if the table of contents is positioned after the first page of the document or before the last page of the document.
There are four models for the HTML document:
Each part of an HTML document is associated with a virtual function and a callback. The calling order depends on the type of document model.
reportBeginDocument

reportFirstPageHeading

reportFirstPageContents

reportFirstPageFooting

For documents with the table of contents at the beginning of the document:

reportTableHeading

reportTableTitle

reportTableBeginEntries

reportTableEntry is called for each entry of the table of contents

reportTableEndEntries

reportTableFooting

reportHeading

reportBeginRows

reportRowContent is called for each row of the data source

reportEndRows

reportFooting

For documents with the table of contents at the end of the document:

reportTableHeading

reportTableTitle

reportTableBeginEntries

reportTableEntry is called for each entry of the table of contents

reportTableEndEntries

reportTableFooting

reportLastPageHeading

reportLastPageContents

reportLastPageFooting

reportEndDocument


reportBeginDocument

reportFirstPageHeading

reportFirstPageContents

reportFirstPageFooting

For documents with the table of contents at the beginning of the document:

reportTableHeading

reportTableTitle

reportTableBeginEntries

reportTableEntry is called for each entry of the table of contents

reportTableEndEntries

reportTableFooting

Calls for each row of the data source with the following functions:

reportHeading

reportBeginRows

reportRowContent

reportEndRows

reportFooting

For documents with the table of contents at the end of the document:

reportTableHeading

reportTableTitle

reportTableBeginEntries

reportTableEntry is called for each entry of the table of contents

reportTableEndEntries

reportTableFooting

reportLastPageHeading

reportLastPageContents

reportLastPageFooting

reportEndDocument

A column is not written if it is not visible.
If you define the callback rowContent, you must call tagDefineLocation function within your row description to insert the row location (used by table of contents). The row location is provided by the rowLocationName property.

TypeNameDescriptionNotes
CallbackdataSourceNameContains the data source name.
CallbackdocumentBackgroundContains the document background.
CallbackdocumentCopyrightContains the document copyright text.
CallbackdocumentTitleContains the document title.
CallbackfilenameContains the document file name.
CallbackfirstPagePictureNameContains the first-page picture file name.
CallbackfirstPageTitleContains the first-page title.
CallbackmodelContains the document model.
CallbackrowCountContains the row count.
CallbackrowLocationNameContains the row location name.
CallbackrowNumberContains the number of the current row.
CallbacktableOfContentsContains true if the table of contents must be generated. In this case, the call to the tableOfContentsColumnName method is necessary.
CallbacktableOfContentsAtBeginningContains true if the table of contents must be inserted at the document beginning. Otherwise the table of contents is just before the last page.
CallbacktableOfContentsColumnNameContains the column name used to generate the table of contents.
CallbacktableOfContentsEntryContains the table of contents entry text.
CallbacktableOfContentsLocationContains the table of contents entry location (it is an href).
CallbacktableOfContentsTitleContains the table of contents title.
StringgetColumnName(Int colno)Returns the column title if the title is defined; otherwise returns the column name.
StringgetColumnValue(Int colno)Returns the column value of the current row. If the column has a mapping, returns the mapped value.
IlvBooleanisColumnVisible(Int colno)Returns true if the column colno is visible.
voidreport()Creates the document.
voidtagBar(Int size)Writes the HTML tag horizontal bar (<hr size=<size>>).
voidtagBeginBody(String color, String opt)Writes the HTML tag delimiting the beginning of the visible document (<body bgcolor="color" opt>)
voidtagBeginBold()Writes the HTML tag for begin bold (<b>).
voidtagBeginCenter()Writes the HTML tag for begin center (<center>).
voidtagBeginCodeListing()Writes the HTML tag for begin code listing (<pre>).
voidtagBeginFont(String opt)Writes the HTML tag for begin font (<font opt>).
voidtagBeginHead()Writes the HTML tag for begin head (<head>).
voidtagBeginHeader(Int size, IlvAlignment align)Writes the HTML tag for begin headers, the most prominent header has the size at 1 and the least at 6. (<h<size> align=<align>>).
voidtagBeginHtml()Writes the HTML tag for begin HTML document (<html>).
voidtagBeginItalic()Writes the HTML tag for begin italic (<i>).
voidtagBeginList()Writes the HTML tag for begin list (<ul>).
voidtagBeginListItem()Writes the HTML tag for begin list item (<li>).
voidtagBeginListOrdered()Writes the HTML tag for begin ordered list (<ol>).
voidtagBeginStrong()Writes the HTML tag for begin strong (<strong>).
voidtagBeginTable(String opt)Writes the HTML tag for begin table (<table opt>).
voidtagBeginTableColumn(String opt)Writes the HTML tag for begin table column (<td opt>).
voidtagBeginTableHeader(String opt)Writes the HTML tag for begin table header (<th opt>).
voidtagBeginTableRow(String opt)Writes the HTML tag for begin table row (<tr opt>).
voidtagBeginUnderline()Writes the HTML tag for begin underline (<u>).
voidtagDefineLocation(String location, String text)Writes the HTML tag to define a location (<a name="location">text</a>).
voidtagEndBody()Writes the HTML tag for end body (</body>).
voidtagEndBold()Writes the HTML tag for end bold (</b>).
voidtagEndCenter()Writes the HTML tag for end center (</center>).
voidtagEndCodeListing()Writes the HTML tag for end code listing (</pre>).
voidtagEndFont()Writes the HTML tag for end font (</font>).
voidtagEndHead()Writes the HTML tag for end head (</head>).
voidtagEndHeader(Int size)Writes the HTML tag for end headers, the most prominent header has the size at 1 and the least at 6 (</h<size>>).
voidtagEndHtml()Writes the HTML tag for end HTML document (</html>).
voidtagEndItalic()Writes the HTML tag for end italic (</i>).
voidtagEndList()Writes the HTML tag for end list (</ul>).
voidtagEndListItem()Writes the HTML tag for end list item (</li>).
voidtagEndListOrdered()Writes the HTML tag for end ordered list (</ol>).
voidtagEndStrong()Writes the HTML tag for end strong (</strong>).
voidtagEndTable()Writes the HTML tag for end table (</table>).
voidtagEndTableColumn()Writes the HTML tag for end table column (</td>).
voidtagEndTableHeader()Writes the HTML tag for end table header (</th>).
voidtagEndTableRow()Writes the HTML tag for end table row (</tr>).
voidtagEndUnderline()Writes the HTML tag for end underline (</u>).
voidtagHeadTitle(String title)Writes the HTML tag to define the document title (<title>title</title>).
voidtagLinkToFile(String file, String text)Writes the HTML tag to define a link to a file (<a href="file">text</a>).
voidtagLinkToFileLocation(String file, String location, String text)Writes the HTML tag to define a link to a location into a file (<a href="file#location">text</a>).
voidtagLinkToLocation(String location, String text)Writes the HTML tag to define a link to a location (<a href="#location">text</a>).
voidtagNewLine(Int count)Writes <count> times the HTML tag new line (<br>).
voidtagParagraph()Writes the HTML tag new paragraph (<p>).
voidtagPicture(String filename, String opt)Writes the HTML tag to insert a picture (<img src="filename">).
voidtagSpace()Writes the HTML tag space (&nbsp;).
voidtagText(String text)Writes text or HTML tags or both.
voidtagTradeMark()Writes the HTML tag for a trade mark (&#174;).