|
-
Mar 16th, 2003, 01:00 AM
#1
Thread Starter
Addicted Member
Multiple page - Same report format
Hi all,
I am using CR 8.5 and have a 1 page preformatted reports which accepts values from my app.
What I am trying to achieve is this;
If the data values exceed the page length of the report, a second page is automatically created and a third etc etc if required. So far, I am using subreports and use the SetText method to set the fields in the report.
My question is, how do you reference the subreport so you can loop through the subreports if needed, so I can change:
With CrystalReport1
.Subreport1_Text1.SetText "John"
.Subreport1_Text2.SetText "Paul"
.Subreport1_Text3.SetText "Fred"
to;
With CrystalReport1
For intCount = 0 to 5
.Subreport(x)_Text1.SetText "John"
.Subreport(x)_Text2.SetText "Paul"
.Subreport(x)_Text3.SetText "Fred"
x = x +1
Next
Cheers
Jack
Last edited by Jackalx25; Mar 16th, 2003 at 04:15 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|