FlexGrid for WinForms
SaveExcel(String,String,FileFlags,PrinterSettings) Method



Name of the file to save, including the path.
Name of the sheet to add to the Excel workbook.
Options to use when saving the file.
System.Drawing.Printing.PrinterSettings to use when saving the file.
Saves the grid contents to a Microsoft Excel (.XLS) file.
Syntax
'Declaration
 
Public Overloads Sub SaveExcel( _
   ByVal fileName As String, _
   ByVal sheetName As String, _
   ByVal flags As FileFlags, _
   ByVal ps As PrinterSettings _
) 
'Usage
 
Dim instance As C1FlexGridBase
Dim fileName As String
Dim sheetName As String
Dim flags As FileFlags
Dim ps As PrinterSettings
 
instance.SaveExcel(fileName, sheetName, flags, ps)

Parameters

fileName
Name of the file to save, including the path.
sheetName
Name of the sheet to add to the Excel workbook.
flags
Options to use when saving the file.
ps
System.Drawing.Printing.PrinterSettings to use when saving the file.
Remarks

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.

Requirements

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

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members
Overload List

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback