Link to home
Start Free TrialLog in
Avatar of Nitin Shah
Nitin ShahFlag for India

asked on

To Load .png picture in VB6

I can print .png picture file in crystal report 8.5. But in VB6 while loading picture it is giving error code 481. What could be the reason and what cold be best possible solution. 

 picdata.Picture = LoadPicture(adoDataRs.Fields!FILELOCATION)

Thanks.



ASKER CERTIFIED SOLUTION
Avatar of John Tsioumpris
John Tsioumpris
Flag of Greece image

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
Avatar of Nitin Shah

ASKER

I tried solution but could not get desired result. It still giving same error and not displaying picture. I just converted .jpg  then it working.
Your article was interesting and useful.  
Thanks for your prompt reply.
It is helpful.

Thanks
Avatar of Mike McCracken
Mike McCracken

Is that for the OCX or the RDC?
Thanks