The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



OnBeforeHTMLExport


Unit:SDL_replist
Class: TReportListView
Declaration: property OnBeforeHTMLExport: TBeforeHTMLExportEvent;
{ TBeforeHTMLExportEvent = procedure (Sender: TObject; var Text: string; Col, Row: integer) of object; }

The event OnBeforeHTMLExport is triggered for each cell of the table and provides a hook for adjusting the HTML code before it is inserted into the exported HTML table. This way it is possible, for example, to emphasize certain parts of the text, or to change the color, or the font size. The event OnBeforeHTMLExport occurs immediately before the text is written to the HTML file. The parameter Text contains the text to be written to the HTML file. The parameters Col and Row indicate the column and row number of the cell which is currently processed. Text from header cells is indicated by a row number of zero.

Hint: Any HTML tags inserted during the processing of this event must have the corresponding closing tags in the same text. Otherwise the active range of such tags would cross cell boundaries, leaving it open to the browser how to render such constructs.



Last Update: 2023-Dec-13