General information
Category:
Reports & Report designer
Title:
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?
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