I've just intergrated crystal reports XI (developer edition XI R2) into my VB6 application but now it hangs whenever I close the application after having exported a report containing graphs. Without the graphs it exports fine but including any sort of graph causes it to hang after finishing.
If working from a compiled version the program seems to close but the process is actually left running, if working from within the VB6 IDE it steps through all the way to the end and then hangs irreversibly without any kind of error message.
I've tried setting the crystal objects to nothing and reducing the references down to the single one I need but to no avail. Here is the reference I'm using and the new code:
Reference: Crystal Reports ActiveX Designer Design and Runtime Library 11.5
Code:Dim miReport As CRAXDDRT.Report Dim miCRApp As New CRAXDDRT.Application Set miReport = miCRApp.OpenReport(rptlocation & "report.rpt") miReport.ExportOptions.FormatType = crEFTPortableDocFormat miReport.ExportOptions.DiskFileName = "c:\output.pdf" miReport.ExportOptions.DestinationType = crEDTDiskFile miReport.Export False Set miCRApp = Nothing Set miReport = Nothing
If the report is run from the CRXI Developer program it exports fine and doesn't seem to have any problems so I'm really at a loss. The problem is really killing me though, I've been tasked with providing a new reporting solution that was supposed to be ready last week. They managed to spot the crash and have put the switch to crystal reports on hold till it's fixed or another solution comes along![]()




Reply With Quote