<κλάση header="doc-nav" aria-label="Πλοήγηση τεκμηρίωσης">
Τεκμηρίωση HotXLS
<κλάση nav="doc-links">
Περιεχόμενα
Αρχική
Επισκόπηση
TGridToXLS
IXLSWorkbook
<κλάση div="nav topic-quick-nav" aria-label="Topic shortcuts">
Αρχική
Περιεχόμενα
Επισκόπηση
SaveAsRTF μέθοδος
<κλάση div="indent">
<κλάση div="txt">
Saves Workbook in RTF file. Επιστρέφει 1 if it succeeds
Παρατηρήσεις
<κλάση div="indent">
<κλάση div="txt">
This method is deprecated. Use IXLSWorkbook.SaveAs method
Σύνταξη
<κλάση div="indent">
<κλάση div="txt">
function SaveAsRTF(FileName: WideString): Integer;
<κλάση div="txt">
function SaveAsRTF(Stream: TStream): 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, Workbook saves the file in the current folder
<κλάση td="syni">Stream
<κλάση td="synid">TStream. Saves Workbook to a stream specified in the Stream parameter
Παράδειγμα
<κλάση div="indent">
<κλάση div="txt">
This example opens Workbook book.xls and then saves it in RTF file
<κλάση pre="code">
Var
Book: IXLSWorkbook;
begin
Book := TXLSWorkbook.Create;
if Book.Open('book.xls') = 1 then
Book.SaveAsRTF('book.rtf');
end;
<κλάση div="txt">
This example creates a new Workbook with two Worksheets and then saves the Workbook in RTF file
<κλάση pre="code">
Var
Workbook: IXLSWorkbook;
begin
Workbook := TXLSWorkbook.Create; {create new Workbook}
Workbook.Worksheets.Add;
{....}
Workbook.Worksheets.Add;
{....}
Workbook.SaveAsRTF('C:\book.rtf');
end;
<κλάση footer="reference-footer">Copyright © 2010-2026 losLab Software