BGMi
asked on
Change the value of a Text Component in Rave Report from code
Hi experts !
I would like to know how to change the value of a standard Text Component in Rave Report from my Delphi Code on runtime. In my report, there is a field that will change value depending of the SQL request, but that value isn't in my SQL table, so I have to change it manually, or find an alternative to change a text component in my report on runtime.
Thanks a lot !
Xor
I would like to know how to change the value of a standard Text Component in Rave Report from my Delphi Code on runtime. In my report, there is a field that will change value depending of the SQL request, but that value isn't in my SQL table, so I have to change it manually, or find an alternative to change a text component in my report on runtime.
Thanks a lot !
Xor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I believe that you gain those points, so I accepted your comment.
Thanks a lot !
Xor
Thanks a lot !
Xor
Yikes!
Undeserving of it, I think... but thanks anyway ;-)
Undeserving of it, I think... but thanks anyway ;-)
ASKER
https://www.experts-exchange.com/questions/20907772/change-the-text-of-a-title-text-in-the-rave-report-from-the-code.html
Here, the solution:
1. On the right column, click on "RaveProject"
2. In the properties of "RaveProject", double-click on "Parameters"
3. Add the name you want to associate to you Text Component (ex: "MyTitle")
4. Now, on your report, add a "DataText Component" (under the Report Tab)
5. Set the "DataField" value to "Param.MyTitle" (or whatever what you called it)
6. From your Delphi code, set the parameter like that: rvProject.SetParam('myTitl
7. Run and have fun !
Thanks anyway !
Xor