|
-
Jun 9th, 2001, 08:28 PM
#1
Thread Starter
Frenzied Member
DataReport Question
hi all...
my question is:
Is it possible to change the caption of one of the labels at runtime of a datareport?
like:
Code:
DataReport1.Label1.Caption = "Hello..."
thx in advance...
-
Jun 9th, 2001, 08:30 PM
#2
What do you want to change it to? Because there are easy ways to do stuff like the time, date, title, etc ?
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 9th, 2001, 08:35 PM
#3
Thread Starter
Frenzied Member
What do you want to change it to? Because there are easy ways to do stuff like the time, date, title, etc ?
What i want to do is show in the top of the report the sql statement that made the report...
-
Jun 9th, 2001, 08:38 PM
#4
try this....
Put the label on the datareport, for the caption put "%i"
then, before you show the report, use this :
DataReport1.Title = sqlStatement 'your sql
see if that works
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 9th, 2001, 08:44 PM
#5
Thread Starter
Frenzied Member
crptcblade is great :)
thx for your fast reply, it worked fine, you had helped me a lot.
by the way what does "%i" means ?
-
Jun 9th, 2001, 08:46 PM
#6
I don't know what to call it besides a special character. It puts the report title in place of the %i. there are others like "%t" for the time, they are in the help files some where
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jun 9th, 2001, 08:50 PM
#7
Thread Starter
Frenzied Member
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
|