Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crystal reports (Sub report)
Message
From
14/06/2001 21:00:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00519087
Message ID:
00519776
Views:
19
>Hi,
>
>Can anybody help me on this.
>
>I have a report which is designed in crystal report writer. Inside that report I have three sub reports. Each subreport has its own datafiles. I need to change the datafiles of the subreports when I am running the application. I was able to change the datafiles of the main report, but not for the subreport.
>
>Thanks

You have to set the property in the Crystal object, like this:

oCrystal.subreporttochange="< report name here >".

Beware, the report name is case sensitive (at least in CR6). You can see in the debugger if the .subreportToChange property has accepted your value. After that, do the same as you do for the master report - it will apply to the active subreport. Don't forget to set this property to "" once you're finished.

That's it. HTH

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform