Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
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.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement