Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Reports changing database at runtime
Message
From
16/08/2006 12:57:13
 
 
To
16/08/2006 12:45:15
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Microsoft SQL Server
Category:
Third party products
Miscellaneous
Thread ID:
01144232
Message ID:
01146064
Views:
29
Doh! Sorry..I answered a similar question in a different forum. Here's the code.
CRApplication = createobject("CrystalRuntime.Application") 
REPNAME = REPSPATH + 'SURVEY.rpt'
CRReport = CRApplication.OpenReport(REPNAME)

myLocalDataFile = DataPATH + 'XLFile.xls'

CRReport.Database.Tables(1).SetTableLocation(myLocalDataFile, "", ::)

CRSubReport = CRReport.OpenSubReports("SSurvey.Rpt")
CRSubReport.Database.Tables(1).SetTableLocation(myLocalDataFile, "", "")
>Maybe that is what I am missing where is the code that you posted ? Was it in one of the thread responses ?
>
>Thanks Again !
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform