Xceed Grid for WinForms v4.3 Documentation
Xceed.Grid.v4.3 Assembly / Xceed.Grid.Exporting Namespace / ExcelExporter Class / Export Method / Export(GridControl,String) Method
A reference to a Xceed.Grid.GridControl object whose data will be exported.
A string representing the name to be used for the exported file.


In This Topic
    Export(GridControl,String) Method
    In This Topic
    Exports the data of a Xceed.Grid.GridControl to a spreadsheet in XML suitable for import into Microsoft Excel.
    Syntax
    'Declaration
     
    Public Overloads Sub Export( _
       ByVal gridControl As GridControl, _
       ByVal filename As String _
    ) 
    'Usage
     
    Dim instance As ExcelExporter
    Dim gridControl As GridControl
    Dim filename As String
     
    instance.Export(gridControl, filename)
    public void Export( 
       GridControl gridControl,
       string filename
    )

    Parameters

    gridControl
    A reference to a Xceed.Grid.GridControl object whose data will be exported.
    filename
    A string representing the name to be used for the exported file.
    Exceptions
    ExceptionDescription
    Can be thrown if access to the specified file is denied.
    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