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
 Tags
Subject: closing a crstal report with fox
Thread ID: 22894 Message ID: 22894 # Views: 31 # Ratings: 0
Version: Visual FoxPro 6 Category: Reports and Printers
Date: Tuesday, April 29, 2003 4:59:43 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.

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