Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal Subreport Object Path
Message
From
16/01/2004 09:32:55
Walter Meester
HoogkarspelNetherlands
 
 
To
14/01/2004 20:29:08
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00866961
Message ID:
00867464
Views:
27
You can open the subreport witht the opensubreport() method. This will give you a reference to a report object, which you can use in the same way to set the database location.

Walter,

>Using CR 9 and VFP 7 my application has a number of reports that incorporate a “logoheader.rpt” file as a subreport in the report header band. The idea being that the end users can change the appearance of their logo and company name information simply by editing this “logoheader” report file. All main reports have the “Re-import When Opening” checkbox checked for this header subreport. Unfortunately, the whole scenario fails at customer sites because the location of the embedded subreport is stored as a hard-coded UNC path from my development machine, complete with machine name!
>
>I have code that loops through the
>
>
<report object>.Database.Tables.ConnectionProperties
>
> collection and changes the source data table path names--for essentially the same reason. Surely there must be a public property of the subreport object that stores this physical location path name that can be reset on the fly in the same manner, but, so far, my search through the object model documentation comes up cold. Can you help me out here? BTW, I can’t find it in your book either <g>.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform