Set picCoupon.FormattedPicture = LoadPicture(App.Path & "\Coup20.bmp")

Hello there,

Using RDC object model within PowerBuilder at runtime I would like to know is there a way to set an image ?

In VB it's possible using following line of code :
Set picCoupon.FormattedPicture = LoadPicture(App.Path & "\Coup20.bmp")

If I were to do this using PowerBuilder I would I do it ? What is the PowerBuilder equivalent function of LoadPicture. Somehow at runttime we are unable to set an image.

Thanks in advance.
SPS
SatnamGambhirAsked:
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.

mlmccCommented:
Can you call VB functions from PowrBuilder?

The LoadPicture funstion is part of the VB environment.

What version of Crystal?  CR XI allows you to store the directory path to the picture in the database and simply retrieve it with Crystal.

mlmcc
0
SatnamGambhirAuthor Commented:
Hello mimcc,

We can't call vb function from PB. The other issue is this needs to be done from Section_Formatted event as well which may not be possible from the PowerBulder.

We are using CR 10 advanced version. Is there a way we can fetch these details from the DB in this version ? Could you help us with the steps ?

Thanks
SPS
0
mlmccCommented:
I don't know enough about PB so,sorry I can't help.  I thought perhapsyou could call an external function in a dll.

It may not be possible.

mlmcc
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

SatnamGambhirAuthor Commented:
Hi,
I can call external function from PB but need to know is there a way to simulate VBs Section_Format event without PowerBuilder ?

Thanks
SPS
0
mlmccCommented:
It is actually the Crystal format event that fires.

There is probably no way to do that.

mlmcc
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
SatnamGambhirAuthor Commented:
I would have really liked to know if CR triggers format event within PB as well. It could be PB event or windows event but trigger by CR's format event.
0
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
Crystal Reports

From novice to tech pro — start learning today.