[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1499
  • Last Modified:

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
0
SatnamGambhir
Asked:
SatnamGambhir
  • 3
  • 3
1 Solution
 
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
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

 
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
 
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

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now