General information
Category:
COM/DCOM and OLE Automation
Title:
Loading Pictures In Crystal Report
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only