Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Centering Image in Report Picture Control
Message
De
03/08/2020 21:01:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
01675528
Message ID:
01675529
Vues:
83
This message has been marked as a message which has helped to the initial question of the thread.
>The VFP Report Writer's Picture/OLE Bound Control has a checkbox to "Center General Field Horizontally in Frame". Is there a means to the same end when the Control Source Type is an image file name, or an expression returning the path and name of an image file, rather than a General field name? I'm producing membership cards for which the image files provided are in a variety of width-to-height ratios, and I'd like to center the narrower ones in the printed picture control while maintaining their shape. Centering seems to happen automatically in screen form's Image controls, but not on reports or labels.

If you can't find a way to do it, you could copy your FRX/FRT out to a temporary copy, load in the FRX as a DBF (use myreport_temp.frx) and locate the row which has the locations of the image on the report.

By looking at screen image location relative to its bounding box, you could adjust the coordinates on the report and then print the report or label from that adjusted temporary copy.

In the alternative, a .BAT file using GIMP's command-line scripting engine to pre-process the image would allow it to be resized and centered. You could also write a DLL to manually center it.

If you cannot find any solutions to get it to work let me know. I will write you a DLL to pre-process the image, copy it out to a temporary location, and then you can use that image file for your report/label.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform