Posted 6 October 2020, 4:34 pm EST
Mohit Many Thanks for your response. The licensing seems like it might be working but I will have to test it out on a different client machine.
I am now facing another issue. On Export to pdf I am getting this exception thrown and I have no clue why it is trying to refer v3.1.0.519.
We have the following code and it is working with v12 of AR. But when I upgraded to v14, the export throws the following error. Can you please help?
Unable to view requested report: . Error showing report viewer window. Unable to view requested report: Order - Summary/Item Detail. Could not load file or assembly ‘GrapeCity.Documents.Pdf, Version=3.1.0.519, Culture=neutral, PublicKeyToken=d55d733d2bfd5065’ or one of its dependencies. The system cannot find the file specified.
Private Sub ExportReport()
Const FILE_EXTENSION As String = "pdf"
dlgSaveFile.Filter = "PDF Files (*.pdf)|*.pdf"
Dim pr As New PageReport()
Dim defaultPath As String = My.Computer.FileSystem.SpecialDirectories.MyDocuments
'Everyone should have a my documents directory. This is an attempt to fix
'this for one guy who seems to not have it.
If Not My.Computer.FileSystem.DirectoryExists(defaultPath) Then
defaultPath = My.Computer.FileSystem.SpecialDirectories.Desktop
End If
dlgSaveFile.FileName = My.Computer.FileSystem.CombinePath(defaultPath, _
m_sDefaultExportFileName.Trim & "." & FILE_EXTENSION)
If dlgSaveFile.ShowDialog() = Windows.Forms.DialogResult.OK Then
PdfExport2.Export(repViewer.Document, dlgSaveFile.FileName)
End If
End Sub