Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
In the place of the image it prints the imagename.jpg
CREATE CURSOR tmpPic (myoleb G, myoleb2 G)
APPEND BLANK
mypic="c:\mypath\image.bmp"
mypic2="c:\mypath\image2.jpg"
IF FILE(mypic)
APPEND GENERAL tmpPic.myoleb FROM (mypic) LINK
ENDIF
IF FILE(mypic2)
APPEND GENERAL tmpPic.myoleb2 FROM (mypic2) LINK
ENDIF
Into the report I have two "Picture/OLE bound objects", with: ControlSourceType=General Field Name.
The 1st with ControlSource=tmpPic.myole and the 2nd with ControlSource=tmpPic.myole2.
I build my project.
Running the exe from my "vfp development PC" I see the two pictures (bmp and jpg) on the print preview OK.
Running the exe from ANY other PC, I see the first picture (bmp type) OK, BUT in the center of the place where the second image (jpg type) must exists, it prints the name of the picture, i.e.: "image2.jpg", not the picture inself !!!!
I test it on 4 deferent PCs of my customers, running WinXP, Vista 32bit, Win7 64bit.
It seams like in all the other PCs (exept in my vfp development PC) the vfp report cannot find the way how to report the jpg type pictures...
Is this a common problem of VFP or something I did wrong?
What can I do?
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