Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Closing Crystal Report after Opening it.

Status
Not open for further replies.

jballum

MIS
Jul 10, 2000
161
CA
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")

'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!!!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top