Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
In the place of the image it prints the imagename.jpg
Message
De
06/02/2013 15:44:11
 
 
À
06/02/2013 15:28:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01565329
Message ID:
01565335
Vues:
59
Rule #1: avoid general fields, AT ALL COST
Rule #2: If you really must use a general field, see rule #1

Specify the name of the image file in the report! Or store the image name, with or without path, in a field, and specify this field in the report.

NB! Did I mention that general fields should be avoided?

>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform