Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loading Pictures In Crystal Report
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Loading Pictures In Crystal Report
Divers
Thread ID:
00626644
Message ID:
00626644
Vues:
48
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
Fil
Voir

Click here to load this message in the networking platform