Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Hi Tore, I think that is no possible in VFP9. You must enter in the controlsource the name of the *bmp and if the file do not exists it returns error. I have to find another way to do this
>It's been a long time since I did this myself, so I am not quite sure if you can do it this way, but I see no reason why not. Another solution is to have two shapes on top of each other, one with a 'Print when File(file1.bmp)', and the other 'Print when .not. File(file1.bmp)'.
>
>>this code in the controlsource of the shape? I just did it, but it do not work. Are you sure of this?
>>
>>>iif(file('file2.bmp'),'file2.bmp','file1.bmp')
>>>
>>>>I need to print two file *bmp in my report: if exist the second *bmp, must be printed the second, otherwise must be printed the first (that is always present instead of the second). I put in 'print when' file("myfile2.bmp"), but it return an error if the file do not exist.
>>>>Some suggest please?
Précédent
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