Hi,
I'm using Telerik version 2020.3.918.1, in Visual Studio version 16.1.1, and getting the following error when trying to export a radgridview to excel in VB.net:
System Entry Point Not Found.
on the line: spreadExporter.RunExport(fileName, exportRenderer)
I am able to export using Telerik export process using a solution that Dess provided on another thread, but it was in C#. When I change the code to VB, and use the same references, I get this error. I get the same error when I create a quick project from scratch (add a grid, load it, add references, and export...) (Code below)
Any ideas? Thanks, Evan
References include: Telerik.WinControls, Telerik.WinControls.GridView, Telerik.WinControls.UI, Telerik.Common, and Telerik.Export
-----------------------------------------------------------------------------------------------
Imports Telerik.WinControls.Export
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'Dim spreadExporter As GridViewSpreadExport = New GridViewSpreadExport(RadGridView1)
'Dim exportRenderer As New SpreadExportRenderer()
'spreadExporter.RunExport("exportedFile.xlsx", exportRenderer)
'Dim exportFile As String = "..\..\exportedData.xlsx"
'Using ms As New System.IO.MemoryStream()
' Dim exporter As New Telerik.WinControls.Export.GridViewSpreadExport(Me.RadGridView1)
' Dim renderer As New Telerik.WinControls.Export.SpreadExportRenderer()
' exporter.RunExport(ms, renderer)
' Using fileStream As New System.IO.FileStream(exportFile, FileMode.Create, FileAccess.Write)
' ms.WriteTo(fileStream)
' End Using
'End Using
Dim fileName As String = "..\..\exported" & DateTime.Now.ToLongTimeString().Replace(":", "_") & ".xlsx"
Dim spreadExporter As GridViewSpreadExport = New GridViewSpreadExport(Me.RadGridView1)
Dim exportRenderer As SpreadExportRenderer = New SpreadExportRenderer()
'exportRenderer.WorkbookCreated += exportRenderer_WorkbookCreated
spreadExporter.ExportVisualSettings = True
spreadExporter.RunExport(fileName, exportRenderer)
Process.Start(fileName)
End Sub