Documentazione HotXLS

SaveAsHTML metodo

Saves Workbook in HTML file. Restituisce 1 if it succeeds

Osservazioni

This method is deprecated. Usa IXLSWorkbook.SaveAs method
I collegamenti ipertestuali nelle celle del foglio di lavoro 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, Workbook salva il file nella cartella corrente

Esempio

This example creates a new Workbook with two Worksheets e then saves the Workbook in HTML file

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