Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Center an Image in a report
Message
 
À
14/03/2007 16:22:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01203672
Message ID:
01203874
Vues:
15
>Hi,
>
>I've got a report that displays the user's logo at the top centre of the first page. The problem I have is that the user can decide what logo they are using and it must be centred.
>
>The only way I can get an image centred is if I use a control sourc etype of "general field name" and select the "center general field horizontally in frame".
>
>No other setting seems to work.
>
>Normally I just use an expression or variable name, but that doesn't allow the centring of the image.
>
>Now my problem is that I just get the file name displayed on the report, not the image being displayed. I have used this code:
>
>
CREATE CURSOR c_Logo;
>(gImage G)
>APPEND BLANK
>APPEND GENERAL gImage FROM (oAppInfo.Logo) CLASS mspaint
>
>oAppInfo.Logo contains the fullpath to the logo file.
>
>I believe I have seen this problem discussed before and it has to do with file associations, but no matter what I associate the JPG extension with I just get the file name displayed.
>
>Any ideas how to fix this?
>
>Thanks,

Does the image need to be in a general field in a table?

Can it be an image that you have the path to or which you can create as you have stored it with FILETOSTR()?

I ask as I'm sure that there is a way, with a reportlistener, to centre an image in the Render() event.

Now I haven't used the 90 reporting features but someone who has, such as Colin Nicholls or Lisa Slater Nicholls could tell you how to do this I'm fairly sure. They breathe VFP reporting and are the ones working on the new Sedna reporting features (which look fantastic).

Try them at www.spacefold.com

If you have no luck then I can have a look but I'm a bit busy at the moment to do some experimenting.
Cheers,
Jamie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform