<κλάση header="doc-nav" aria-label="Πλοήγηση τεκμηρίωσης">
Τεκμηρίωση HotXLS
<κλάση nav="doc-links">
Περιεχόμενα
Αρχική
Επισκόπηση
TGridToXLS
IXLSWorkbook
<κλάση div="nav topic-quick-nav" aria-label="Topic shortcuts">
Αρχική
Περιεχόμενα
Επισκόπηση
SaveAsHTML μέθοδος
<κλάση div="indent">
<κλάση div="txt">
Saves Worksheet in HTML file. Επιστρέφει 1 if it succeeds
Παρατηρήσεις
<κλάση div="indent">
<κλάση div="txt">
This method is deprecated. Use TXLSWorksheet.SaveAs method
<κλάση div="txt">
Hyperlinks in exported cells are written as HTML anchor tags. The
hyperlink address is emitted as href, ScreenTip text is
emitted as a title attribute, and all attribute and
display text is HTML-escaped
<κλάση div="txt">
Cell comments are emitted as escaped title attributes on
the exported table cells, so review notes remain available as browser
tooltips in the generated HTML
<κλάση div="txt">
To customize exporter behavior, create
TXLSHTMLExport
directly. Its Options property defaults to
[xhHyperlinks, xhComments]; remove
xhHyperlinks to write linked cells as plain escaped text,
or remove xhComments to suppress comment title output
Set Title to write an escaped HTML document
<title> value. Set SimpleExport to
write a minimal table without generated CSS classes, hyperlink anchors,
or comment title attributes. Use TableBorderWidth,
CellPadding, and CellSpacing to control the
generated table layout attributes
Σύνταξη
<κλάση div="indent">
<κλάση div="txt">
function SaveAsHTML(FileName: WideString): Integer;
<κλάση table="synd">
<κλάση td="syni">FileName
<κλάση td="synid">WideString. A string that indicates the name of the file to be saved. You can include a full path; if you don't, Worksheet saves the file in the current folder
Παράδειγμα
<κλάση div="indent">
<κλάση div="txt">
This example creates a new workheet and then saves it in the HTML file
<κλάση pre="code">
Var
Workbook: IXLSWorkbook;
Worksheet: TXLSWorksheet;
begin
Workbook := TXLSWorkbook.Create; {create new Workbook}
Worksheet := Workbook.Worksheets.Add;
{....}
Worksheet.SaveAsHTML('C:\sheet.html');
end;
<κλάση footer="reference-footer">Copyright © 2010-2026 losLab Software