Saves Workbook in RTF file. Restituisce 1 if it succeeds
Osservazioni
Sintassi
funzione SaveAsRTF(FileName: WideString): Integer;
funzione SaveAsRTF(Stream: TStream): 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 |
| Stream |
TStream. Saves Workbook to a stream specified in the Stream parameter |
Esempio
This example opens Workbook book.xls e 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 e then saves the Workbook in RTF file