Skip to Content
0
Former Member
Sep 16, 2009 at 02:45 PM

Error detected by export DLL creating PDF with VS .net 2008/CR 2008

181 Views

I am using Visual Studio .net 2008 and Crystal Reports 2008. When I try to create a PDF I get the following error:

" Error in File KPRwParm {5A952CA7-3467-481A-80CF-9CA68960BC41}.rpt: Error detected by export DLL: "

This occurs on every machine I run the report on.

Dim myExportOptions As CrystalDecisions.Shared.ExportOptions

Dim myDiskFileDestinationOptions As CrystalDecisions.Shared.DiskFileDestinationOptions

Dim myExportFile As String

ToolStripStatusLabel1.Text = "Generating KPR PDF for " & Distname & " " & SchName

CreateFolder(Me.txtReportFolder.Text)

frmKPRReport.reportDocument1.SetParameterValue("My Parameter", DIST_CD)

frmKPRReport.reportDocument1.DataSourceConnections(0).SetConnection("MyDSN", "KPA", True)

myExportFile = Me.txtReportFolder.Text & Distname & "\" & "IPR09_" & SchName & ".pdf"

myDiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions()

myDiskFileDestinationOptions.DiskFileName = myExportFile

myExportOptions = frmRpt.reportDocument1.ExportOptions

myExportOptions.ExportDestinationOptions = myDiskFileDestinationOptions

myExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile

myExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat

Try

frmRpt.reportDocument1.Export(myExportOptions)

Catch

MsgBox("error for org_id: " & DIST_CD & vbCrLf & vbCrLf & Err.Description)

End Try

I have seen several other questions related but most are using excel or older versions of Visual Studio.

Edited by: MikePrater on Sep 16, 2009 4:55 PM