Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.DataGrid Assembly / Xceed.Wpf.DataGrid Namespace / DataGridControl Class / ExportToExcel Method / ExportToExcel(String) Method
A string representing the fully-qualified path of the file to which to export the content of the grid.


In This Topic
    ExportToExcel(String) Method
    In This Topic
    Exports the content of the grid in the Excel xmlss format to the specified file.
    Syntax
    'Declaration
     
    Public Overloads Sub ExportToExcel( _
       ByVal fileName As String _
    ) 
    'Usage
     
    Dim instance As DataGridControl
    Dim fileName As String
     
    instance.ExportToExcel(fileName)
    public void ExportToExcel( 
       string fileName
    )

    Parameters

    fileName
    A string representing the fully-qualified path of the file to which to export the content of the grid.
    Requirements

    Target Platforms: Windows 11, Windows, 10, 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