Using the following code snippet I can open up a report in Crystal but the report stays open after the script is finished. Is there a way to close the report within the script?
Thanks
JB
Dim objApp As Object
Set objApp = CreateObject("Crystal.CRPE.Application"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
'get the Crystal report
Dim objReport As Object
Set objReport = objApp.OpenReport("c:\report.rpt",1)
objReport.Preview
Set objReport = Nothing
Set objApp = Nothing
'REPORT STAYS OPENED!!!!!!!
Thanks
JB
Dim objApp As Object
Set objApp = CreateObject("Crystal.CRPE.Application"
'get the Crystal report
Dim objReport As Object
Set objReport = objApp.OpenReport("c:\report.rpt",1)
objReport.Preview
Set objReport = Nothing
Set objApp = Nothing
'REPORT STAYS OPENED!!!!!!!