Re: [api-dev] How to ask a frame if any part of it is outside of the margin or of the printable area

2006-03-14 Thread Kent Gibson
Thanks in the end I wrote up something similiar to your algorithmn. What I did is I created a shape, then I do insertTextContent, and then I do getSize and finally removeTextContent. Then I at least have the size of the object so I can calculate if there is room enough. Then instead of a shape

Re: [api-dev] How to ask a frame if any part of it is outside of the margin or of the printable area

2006-03-13 Thread Fernand Vanrie
Had the same problem and solved it with running a counter for eevry page and keep track off the cursor position on the page where we are inserting a frame. Then you have to place the new frame anywhere on the page, fil the frame with the text and with the frame cursor you can measur the hight

[api-dev] How to ask a frame if any part of it is outside of the margin or of the printable area

2006-03-09 Thread Kent Gibson
Is there any way I can ask a frame if any part of it is in the non - printable area? If any one has any ideas I would be very appreciative and I will be happy to submit a snippet for it. I am planning on submitting a couple of frame snippets already. Sorry for the deluge of questions. But this