I have following line of code but it gives me compilation error. Please advise.
UltraGridExcelExporter1.Export(UpdateHomeBase,
"C:\TEST.xls")
UpdateHomeBase is infragistics grid.
According to the error message, the arguments you are passing into the Export method don't match the types that the method accepts. Perhaps UpdateHomeBase is not an UltraWinGrid control.
Another possibility is that your project has mismatched references or that the Infragistics references have CopyLocal to True.
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.
It would probably be helpful to know the exact wording of the compilation error.