Change the value of a Text Component in Rave Report from code

Posted on 2004-11-22
Last Modified: 2010-04-05
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 !
Question by:BGMi

    Author Comment

    Alright ! I found the answer in this topic:

    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('myTitle', 'yourValue');
      7. Run and have fun !

    Thanks anyway !
    LVL 14

    Accepted Solution

    Ah, seems that you found the answer in one of my PAQs, hehe.

    Post a question at the community support area to have them close this Q and refund your points.


    Author Comment

    I believe that you gain those points, so I accepted your comment.

    Thanks a lot !
    LVL 14

    Expert Comment


    Undeserving of it, I think... but thanks anyway ;-)

    Featured Post

    Courses: Start Training Online With Pros, Today

    Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

    Join & Write a Comment

    The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
    Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now