Hi all.
I use Crystal Reports 8.5 and Visual Fox 6 (but I'll move to the version 9 soon). I need to print a document where, besides the code and product description, I have also to print the product's photo. For each photo I stored, in a table, the full pathname of the file. The user selects some products and he needs the list of the selected products, each with its photo.
I tried several ways. The first I tried was to modify the Crystal report's OLE object property "FORMATTEDPICTURE" but I hadn't it available with VisualFox; I managed to modify, for example, the picture dimensions but not the picture itself. I read that this operation is allowed with VB. Does someone know whether this function is also available with VFoxPro ? Or how can I do it ?
Second attempt. I tried using the APPEND GENERAL instruction. When Crystal recognises the field as a BLOB field it prints correctly the image but my images are JPEG photos and the VFoxPro table's column contains only the image icon (the link to the photo). That image is
printed (not the content of the file). I found a workaround to solve this problem renaming the JPEG file as BMP and it works ! But I do not like this solution at all !
Is there someone who can suggest any other solution ?
Thanks.
Ciao.
Marco (Italy)
marco.dicesare@elmec.it
I use Crystal Reports 8.5 and Visual Fox 6 (but I'll move to the version 9 soon). I need to print a document where, besides the code and product description, I have also to print the product's photo. For each photo I stored, in a table, the full pathname of the file. The user selects some products and he needs the list of the selected products, each with its photo.
I tried several ways. The first I tried was to modify the Crystal report's OLE object property "FORMATTEDPICTURE" but I hadn't it available with VisualFox; I managed to modify, for example, the picture dimensions but not the picture itself. I read that this operation is allowed with VB. Does someone know whether this function is also available with VFoxPro ? Or how can I do it ?
Second attempt. I tried using the APPEND GENERAL instruction. When Crystal recognises the field as a BLOB field it prints correctly the image but my images are JPEG photos and the VFoxPro table's column contains only the image icon (the link to the photo). That image is
printed (not the content of the file). I found a workaround to solve this problem renaming the JPEG file as BMP and it works ! But I do not like this solution at all !
Is there someone who can suggest any other solution ?
Thanks.
Ciao.
Marco (Italy)
marco.dicesare@elmec.it