Please Help - Crystal Reports Document Load

Kohlnar

New member
Joined
Apr 3, 2009
Messages
1
Programming Experience
10+
I have a windows service written in VB.net that loads a dll, also written in VB.net, which then produces Crystal Reports. Since migrating to Visual Studio 2008 and the 3.5 Framwork, when the code in the dll executes the line "rcDoc.Load(nameOfReport,0) it never returns, and does not produce an error. It will stay on that line forever if I let the service continue to run.

rcDoc = New CrystalDecisions.CrystalReports.Engine.ReportDocument
NameOfReport = AppServer & ReportName

fi = New FileInfo(NameOfReport)
If Not fi.Exists Then
Exit Sub
End If

rcDoc.Load(NameOfReport, 0)

If I run the service as an application, it works.

Any help will be greatly appreciated.
 
Last edited:
Back
Top