Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loading Pictures In Crystal Report
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Loading Pictures In Crystal Report
Miscellaneous
Thread ID:
00626644
Message ID:
00626644
Views:
58
Hi,

I am using LoadPicture() to add images to a Crystal Report. Problem is when I run the application from the vfp exe I get the error "OLE error Code 0x80020003. Member not found". Now when its run from vfp command line works fine.

I am using Crystal RDC and vfpcom. Here is the code I have that loads the picture. The error message is at line poPicture.FormattedPicture = loImage. I have verified the file path is valid.

PROCEDURE FORMAT(pFormattingInfo)
lcImageFile = IMAGE_DIRECTORY + poFieldObject.VALUE
IF FILE(lcImageFile)
loImage = LOADPICTURE(lcImageFile)
poPicture.FormattedPicture = loImage
poPicture.WIDTH = loImage.WIDTH/2
poPicture.HEIGHT = loImage.HEIGHT/2
ENDIF
ENDPROC


Thanks a lot in advance for your help.
Next
Reply
Map
View

Click here to load this message in the networking platform