|
-
Mar 16th, 2000, 04:50 AM
#1
Thread Starter
Junior Member
Can you programatically change the caption property of a label in a data report? Looks like the caption property of a label in a Data Report designer is available only during design time.
rptlabel1.Caption = "Microsoft" does not work!!
Any thoughts
Zack
-
Apr 6th, 2000, 02:09 AM
#2
New Member
Dynamically change DataReport labels at run-time
In order for you to dynamically change VB DataReport labels, you have to use the Sections/Controls properties of the DataReport.
Code ex.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rpt01.Sections("sctRptHdr").Controls("lblBeginDate").Caption = "11/01/1998"
rpt01.Sections("sctRptHdr").Controls("lblEndDate").Caption = "11/30/1998"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The above code will change the label caption of the "lblBeginDate" label in the "sctRptHdr" section of the report to "11/01/1998" and change the label caption of the "lblEndDate" label in the "sctRptHdr" section of the report to "11/30/1998".
You just have to change the names in parenthesies to the names associated with the Section and Control that you want changed at run-time.
-
Apr 6th, 2000, 12:54 PM
#3
Member
Wow, that's really cool. But i have a question.....
How can i show in my reports multiple children commands with same level.
thanks
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
|