The path to the data is defined in the DSN. Crystal will use the DSN settings. You need to make sure you discard any saved data.
LOCAL oCR AS CRAXDRT.Application
LOCAL oRpt AS CRAXDRT.Report
oCR = CREATEOBJECT(“CrystalRuntime.Application”)
oRpt = oCR.OpenReport(“C:\Temp\Taz.RPT”)
IF oRpt.HasSavedData
oRpt.DiscardSavedData()
ENDIF
oRpt.PrintOut()
>I m using file DNS to access MySQL Data for my Crystal Report.
>
>Today I deploy the progrom to another computer. The path for the file Dns changed. How can I refresh the Crystal Report to new path?
>
>TIA.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer