Access Rave report component from code

I am using Borland c++ and Rave reports.

On my rave report I have a Bitmap component and a Text component.

How can I access the Bitmap and the Text components from code. I.e. is there a way to get a handle to the component and then set its properties?
WalterRautenbachAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
WalterRautenbachConnect With a Mentor Author Commented:
I figured it out myself at the end. The comments above was of zero help.
0
 
George TokasCommented:
>>I am using Borland c++ and Rave reports.
C++ Builder or just Borland C++??
With C++ Builder Rave reports are VCL components and so you can access their properties...

George Tokas.
0
 
WalterRautenbachAuthor Commented:
Thank you for the response but I am not sure you understand, the report is designed in RAVE reports. On the report is a bitmap component and a text component, I want to set the text of the text component from code using Borland and set the image of the bitmap component using Borland code. Not through a database connection as my images are JPEGs in the DB and RAVE does not convert it to Bitmaps automatically.

So I have to set the bitmap 'dynamically'.

So I want to do something like RaveProjectComponent->ReportName->BitmapComponent->Image = MyJPEGRetrievedFromDB
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
George TokasCommented:
C++ Builder has TJPegImage component...
Load your jpeg to the component...
You can export the image to bitmap using Assign() method to a TBitmap...
After that you have the bitmap representation of the jpeg...

George Tokas.
0
 
WalterRautenbachAuthor Commented:
Again thank you, I know to convert the JPEG to Bitmap, but how dit I assign it to the RAVE Bitmap component
0
 
George TokasCommented:
There must be properties you can access from code...
I didn't use RAVE Reports so I'm just guessing...
Any VCL component - and RAVE Reports included - gives access at runtime...

George Tokas.
0
All Courses

From novice to tech pro — start learning today.