Current Y position on the page

Posted by: hrvoje.zirdum on 25 March 2024, 7:53 pm EST

  • Posted 25 March 2024, 7:53 pm EST

    Hello,

    how can I find out what’s the current Y position (lets say in milimeteres) of the last object that I created on the page?

    Thank you

  • Posted 26 March 2024, 9:25 pm EST

    Hi Hrvoje,

    Apologies for the delay in response.

    As per our understanding, you are using the C1PrintDocument and want to find out the Y coordinate of a RenderObject. Unfortunately, if your RenderObjects have X/Y coordinates set to Unit.Auto, they are calculated internally when the Document is being generated, and there is no way to get the absolute value.

    If you meant something else, please share a sample project/screenshot showing the issue you are facing, so we can investigate further and assist you in the best way possible.

    Kind Regards,

    Kartik

  • Posted 26 March 2024, 10:47 pm EST

    Hi, yes I’m using C1PrintDocument (I set C1PrintDocument .DefaultUnit = UnitTypeEnum.Mm) and for a Y coordinate of some RenderObject I mostly use Y = “prev.bootom” and I would like to know is there a way to find out exact Y position on the page after a few RenderedObjects (lets say I’m currently at the 89 mm of total a cca 290 mm with is a A4 paper size). But, you answered that it’s imposible so…

    Thak you

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels