FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TFlexCelImport.NewFile Method

This method will create an empty Excel file, that you can fill with the API. 

 

Pascal
procedure NewFile(const SheetCount: integer = 3);
C++
__fastcall NewFile(const int SheetCount = 3);
Parameters 
Description 
const SheetCount: integer = 3 
Number of sheets for the new file. If you don't specify this value, 3 sheets will be used. 

The workbook created will be in English, will have 3 sheets called "Sheet1" to "Sheet3" and will have empty properties (Author, Description, etc). 

If you want to have a more personalized file when you call NewFile (for example with a given Author, or the sheets names on your language), it is very easy. Just edit and/or replace the file "EmptySheet.xls" with your own. Then recompile FlexCel, and your new file will be linked in.

Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!