Link to home
Start Free TrialLog in
Avatar of SatnamGambhir
SatnamGambhir

asked on

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
Avatar of Mike McCracken
Mike McCracken

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
Avatar of SatnamGambhir

ASKER

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
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
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
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.