Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Kory Hanlon
  Where is Kory Hanlon?
 
 Canada
 Kory Hanlon
 To: Kory Hanlon
  Where is Kory Hanlon?
 
 Canada
 Kory Hanlon
 Tags
Subject: RE: closing a crstal report with fox
Thread ID: 22894 Message ID: 22951 # Views: 17 # Ratings: 0
Version: Visual FoxPro 6 Category: Reports and Printers
Date: Wednesday, April 30, 2003 3:00:57 PM         
   


>
> canfox
>
> I'm trying to mass print two crystal reports at the same time. I'm almost there but I need a way to close the connection to the report before I use the OpenReport() command. Does anyone know how to do this?
>
> oCR = CREATEOBJECT("CrystalRuntime.Application")
> oRpt = oCR.OpenReport("ClientInvoice.RPT")
>
> IF oRpt.HasSavedData
> oRpt.DiscardSavedData()
> ENDIF
>
> oRpt.PrintOut(.F.)
>
> Need somehing here to close the report so I can reopen it to read the newest table info.


canfox
Nevermind, I figured it out.
Just have to set the object = null.

COMPLETE THREAD

closing a crstal report with fox Posted by Kory Hanlon @ 4/29/2003 4:59:43 PM
RE: closing a crstal report with fox Posted by Kory Hanlon @ 4/30/2003 3:00:57 PM