Salva la cartella di lavoro in un file RTF. Restituisce 1 in caso di successo
Note
Sintassi
function SaveAsRTF(FileName: WideString): Integer;
function SaveAsRTF(Stream: TStream): Integer;
| FileName |
WideString. Stringa che indica il nome del file da salvare. Puoi includere un percorso completo; in caso contrario, Workbook salva il file nella cartella corrente |
| Stream |
TStream. Saves cartella di lavoro stream specificato nell'intervallo Stream parameter |
Esempio
This example opens Workbook book.xls and then saves it in RTF file
Var
Book: IXLSWorkbook;
begin
Book := TXLSWorkbook.Create;
if Book.Open('book.xls') = 1 then
Book.SaveAsRTF('book.rtf');
end;
This example creates a new Workbook with two Worksheets and then saves the Workbook in RTF file