Information générale
Catégorie:
Gestionnaire de rapports & Rapports
>Hi Koen,
>
>GDIPlusX turned out to work. I didn't need resizing, just horizontal centering within the report's picture frame. I j used the GDIPlus ssystem.drawing.bitmap.fromscreen method to snip the picture from the form's image control (where it was already displayed as centered), and then used the bitmap object's save method to create a .jpg usable as the report's picture control source. That solved the problem of the report designer (unlike the form image class) being able to do its own centering only for images that are based on General fields, which I don't use. Yes, I have both the form's image control and the report's picture control set to scale contents, retain shape. Typical VFP, many ways to the same end, right? You stay healthy too.
>
>Jonathan
You might want to make sure that your code isn't going to be adversely affected if the display scaling is changed.
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