I have following line of code but it gives me compilation error. Please advise.
UltraGridExcelExporter1.Export(UpdateHomeBase,
"C:\TEST.xls")
UpdateHomeBase is infragistics grid.
It would probably be helpful to know the exact wording of the compilation error.
Normal 0 false false false MicrosoftInternetExplorer4
Error 10 Overload resolution failed because no accessible 'Export' can be called with these arguments:
'Public Function Export(grid As Infragistics.Win.UltraWinGrid.UltraGrid, worksheet As Infragistics.Excel.Worksheet) As Infragistics.Excel.Workbook': Expression does not produce a value.
'Public Function Export(grid As Infragistics.Win.UltraWinGrid.UltraGrid, worksheet As Infragistics.Excel.Worksheet) As Infragistics.Excel.Workbook': Value of type 'String' cannot be converted to 'Infragistics.Excel.Worksheet'.
'Public Function Export(grid As Infragistics.Win.UltraWinGrid.UltraGrid, workbook As Infragistics.Excel.Workbook) As Infragistics.Excel.Workbook': Expression does not produce a value.
'Public Function Export(grid As Infragistics.Win.UltraWinGrid.UltraGrid, workbook As Infragistics.Excel.Workbook) As Infragistics.Excel.Workbook': Value of type 'String' cannot be converted to 'Infragistics.Excel.Workbook'.
'Public Function Export(grid As Infragistics.Win.UltraWinGrid.UltraGrid, fileName As String) As Infragistics.Excel.Workbook': Expression does not produce a value.