Saves Worksheet 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, il foglio di lavoro salva il file nella cartella corrente |
| Stream |
TStream. Saves Worksheet to a stream specified in the Stream parameter |
Esempio
This example creates a new workheet e then saves it in the RTF file
Var
Book: IXLSWorkbook;
Sheet: TXLSWorksheet;
begin
Book := TXLSWorkbook.Create; {create new Workbook}
Sheet := Book.Worksheets.Add;
With Sheet.Cells[2,2] do
begin
Value := 'Text value';
Font.Size := 20;
Font.Color := clRed;
ColumnWidth := 50;
end;
Sheet.SaveAsRTF('sheet.rtf');
end;