General information
Category:
Reports & Report designer
>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only