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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

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
WalterRautenbachAuthor Commented:
I figured it out myself at the end. The comments above was of zero help.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.