Information générale
Titre:
Exporting file from Crystal to PDF in VB.NET Service
Hi...
I have two Windows.Net services that create pdf's via crystal reports. The services are building reports of different types. Both services work fine, independant of each other. However, when both are running (on the same machine), I get Crystal Reports error when try to export the Crystal Report to PDF. Below is a snippet of code followed by the error message being generated. Thanks in advance, Tim
CODE>>>>
oRpt = New rptBatch()
oRpt.SetDataSource(pobjDS)
Dim DiskOpts As CrystalDecisions.Shared.DiskFileDestinationOptions = New CrystalDecisions.Shared.DiskFileDestinationOptions()
Try
objFunctions.WriteToErrorLog("Beginning to Export",strFolder)
oRpt.ExportOptions.ExportDestinationType = CrystalDecisions.[Shared].ExportDestinationType.DiskFile
oRpt.ExportOptions.ExportFormatType = CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat
DiskOpts.DiskFileName = strReport
oRpt.ExportOptions.DestinationOptions = DiskOpts
oRpt.Export()
objFunctions.WriteToErrorLog("Export Completed", strFolder)
Catch err As Exception
objFunctions.ProcessError(err, strFolder)
End Try
ERROR:>>>>>>
3/27/2003 11:28:34 AM ERROR IN CrystalDecisions.CrystalReports.Engine
ERROR: Load report failed.
STACK TRACE: at .K(String
, EngineExceptionErrorID )
at .G(String , Int32 )
at CrystalDecisions.CrystalReports.Engine.ReportDocument.0(String w, OpenReportMethod x, Int16 y)
at CrystalDecisions.CrystalReports.Engine.ReportClass.0(String O, OpenReportMethod P, Int16 Q)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(Object value)
at FaxService.modHypersend.HyperSendResults(String strClientDesc, String strFax, String strEmail, Int16 intWantsHypersend, Int16 intWantsFax, String strClient, Int32 intCount, Int16 intSend, String strFullName, String strSeparatePatient) in C:\Documents and Settings\All Users\Desktop\FaxService\modHypersend.vb:line 73
at FaxService.Service1.CreateReports() in C:\Documents and Settings\All Users\Desktop\BatchProcessingService\Service1.vb:line 657
at FaxService.Service1.Timer1_Elapsed(Object sender, ElapsedEventArgs e) in C:\Documents and Settings\All Users\Desktop\BatchProcessingService\Service1.vb:line 714
************************************************************
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement