TXlsFile.Create Constructor
Overloads
- TXlsFile.Create
- TXlsFile.Create(Boolean)
- TXlsFile.Create(string)
- TXlsFile.Create(string, Boolean)
- TXlsFile.Create(Integer, Boolean)
- TXlsFile.Create(TStream, Boolean)
- TXlsFile.Create(Integer, TExcelFileFormat, Boolean)
TXlsFile.Create
Creates a new XlsFile. After creating an XlsFile with this constructor, you need to either open or create a new file.
Syntax
Unit: FlexCel.XlsAdapter
constructor TXlsFile.Create;
See also
TXlsFile.Create(Boolean)
Creates a new XlsFile and sets the desired Overwriting mode for files. After creating an XlsFile with this constructor, you need to either open or create a new file.
Syntax
Unit: FlexCel.XlsAdapter
constructor TXlsFile.Create(const aAllowOverwritingFiles: Boolean);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aAllowOverwritingFiles | Boolean | When true calling "Save" will overwrite existing files. See TExcelFile.AllowOverwritingFiles |
See also
TXlsFile.Create(string)
Creates a new XlsFile and opens the desired file.
Syntax
Unit: FlexCel.XlsAdapter
constructor TXlsFile.Create(const aFileName: string);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aFileName | string | Name of the file to open. |
See also
TXlsFile.Create(string, Boolean)
Creates a new XlsFile and opens the desired file. Sets the desired Overwriting mode for files.
Syntax
Unit: FlexCel.XlsAdapter
constructor TXlsFile.Create(const aFileName: string; const aAllowOverwritingFiles: Boolean);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aFileName | string | Name of the file to open. |
const | aAllowOverwritingFiles | Boolean | When true calling "Save" will overwrite existing files. See TExcelFile.AllowOverwritingFiles |
See also
TXlsFile.Create(Integer, Boolean)
Creates a new XlsFile and creates a new empty file with the desired number of sheets.
Syntax
Unit: FlexCel.XlsAdapter
constructor TXlsFile.Create(const aSheetCount: Integer; const aAllowOverwritingFiles: Boolean);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aSheetCount | Integer | Number of sheets for the new empty file. |
const | aAllowOverwritingFiles | Boolean | When true calling "Save" will overwrite existing files. See TExcelFile.AllowOverwritingFiles |
See also
TXlsFile.Create(TStream, Boolean)
Creates a new XlsFile and opens the desired file from a stream. Sets the desired Overwriting mode for files.
Syntax
Unit: FlexCel.XlsAdapter
constructor TXlsFile.Create(const aStream: TStream; const aAllowOverwritingFiles: Boolean);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aStream | TStream | Stream with the file to open. |
const | aAllowOverwritingFiles | Boolean | When true calling "Save" will overwrite existing files. See TExcelFile.AllowOverwritingFiles |
See also
TXlsFile.Create(Integer, TExcelFileFormat, Boolean)
Creates a new XlsFile and creates a new empty file with the desired number of sheets and file format.
Syntax
Unit: FlexCel.XlsAdapter
constructor TXlsFile.Create(const aSheetCount: Integer; const aFileFormat: TExcelFileFormat; const aAllowOverwritingFiles: Boolean);
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | aSheetCount | Integer | Number of sheets for the new empty file. |
const | aFileFormat | TExcelFileFormat | Version of Excel used to create the new file. Different version can have different default fonts, column widths, etc. |
const | aAllowOverwritingFiles | Boolean | When true calling "Save" will overwrite existing files. See TExcelFile.AllowOverwritingFiles |