Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exporting file from Crystal to PDF in VB.NET Service
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Exporting file from Crystal to PDF in VB.NET Service
Miscellaneous
Thread ID:
00770804
Message ID:
00770804
Views:
51
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
************************************************************
Reply
Map
View

Click here to load this message in the networking platform