Documentazione HotXLS

SaveAsHTML metodo

Saves Worksheet in HTML file. Restituisce 1 if it succeeds

Osservazioni

This method is deprecated. Usa TXLSWorksheet.SaveAs method
I collegamenti ipertestuali nelle celle esportate vengono scritti come tag anchor HTML. L'indirizzo del collegamento ipertestuale viene emesso come href, ScreenTip text is emitted as a title attribute, e all attribute e display text is HTML-escaped
Cell comments are emitted as escaped title attributi sulle celle della tabella esportata, così le note di revisione restano disponibili come descrizioni comando del browser nell'HTML generato
To customize exporter behavior, create TXLSHTMLExport directly. Its Options proprietà defaults to [xhHyperlinks, xhComments]; remove xhHyperlinks to write linked cells as plain escaped text, o remove xhComments to suppress comment title output Imposta Title to write an escaped HTML document <title> value. Imposta SimpleExport to write a minimal table without generated CSS classes, hyperlink anchors, o comment title attributes. Usa TableBorderWidth, CellPadding, e CellSpacing to control the generated table layout attributes

Sintassi

funzione SaveAsHTML(FileName: WideString): Integer;
FileName WideString. Una stringa che indica il nome del file da salvare. È possibile includere un percorso completo; in caso contrario, il foglio di lavoro salva il file nella cartella corrente

Esempio

This example creates a new workheet e then saves it in the HTML file

Var
  Workbook: IXLSWorkbook;
  Worksheet: TXLSWorksheet;
begin
  Workbook := TXLSWorkbook.Create; {create new Workbook}
  Worksheet := Workbook.Worksheets.Add;
  {....}
  Worksheet.SaveAsHTML('C:\sheet.html');
end;