C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class > SaveExcel Method : SaveExcel(String,String,FileFlags) Method |
'Declaration
Public Overloads Sub SaveExcel( _ ByVal fileName As String, _ ByVal sheetName As String, _ ByVal flags As FileFlags _ )
'Usage
Dim instance As C1FlexGridBase Dim fileName As String Dim sheetName As String Dim flags As FileFlags instance.SaveExcel(fileName, sheetName, flags)
If the specified file exists, the control will add or replace a single worksheet in it. Existing sheets will be preserved if possible.
The worksheet to add or replace is identified by the sheetName parameter.
If the specified file is in use by another application (usually Excel), the method will fail.
This method does not require Microsoft Excel to be installed on the machine.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2