Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report Sections - Referencing them in a Program

Status
Not open for further replies.

demoman

Programmer
Oct 24, 2001
242
US
I want to reference a CR section similar to below:

rpt.sections("Section1").reportobjects("Picture1")=loadpicture(strLogoFile)

I am unclear how CR references the sections. Are they named in sequential order? Are they named "RH", "PH", "GH1"...?

Appreciate the help.
 
From one of the help files on the Item property of the Sections collection:
Item (index as long) - Returns Section Object. Item has an index parameter that can be either a string reference to the area section (i.e., for areas with one section: “RH”, “PH”, “GHn”, “D”, “GFn”, “PF”, or “RF”) or a numeric, 1-based index (i.e., Item (1)) for the Report Header area. Numeric index for sections starts at 1 for first section in the area/report and continues in order of appearance. If the area has multiple sections, they are represented using a lowercase letter (i.e., “Da”, “Db”, etc.).

-dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top