Not trying to get the Form Size but the actual coordinates within the page frame so I can then use MOVE OBJECT to align them before printing. OBJECT GET COORDINATES does return the coordinates but I think they are relative not absolute coordinates.
On Mon, May 21, 2018 at 4:09 PM, Keisuke Miyako via 4D_Tech < [email protected]> wrote: > have you tried FORM GET PROPERTIES to get the center of form? > http://doc.4d.com/4Dv16/4D/16.3/FORM-GET-PROPERTIES.301-3651178.en.html > > I don't recall OBJECT GET COOD. to ever return the form size > http://doc.4d.com/4Dv16/4D/16.3/OBJECT-GET-COORDINATES.301-3651562.en.html > > > 2018/05/21 12:43、Sujit Shah via 4D_Tech <[email protected]> のメール: > > > > I am trying to automatically "center" the Form 4D prints using PRINT > FORM. > > > > For some reason no matter where the form objects are placed I keep > getting > > the same coordinates in the first line of code below: > > > > `Form event On Load > > OBJECT GET COORDINATES(*;"@";$lLeft;$lTop;$lRight;$lBottom) //The form > > > > > ********************************************************************** > 4D Internet Users Group (4D iNUG) > FAQ: http://lists.4d.com/faqnug.html > Archive: http://lists.4d.com/archives.html > Options: https://lists.4d.com/mailman/options/4d_tech > Unsub: mailto:[email protected] > ********************************************************************** -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx "There must be ingenuity as well as intention, strategy as well as strength. " ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

