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