Visible or out of page area ?

Hi,
How can i check that dynamically created label is visible on report page (all bouds are in page area - full visible).
After that is possible to delete not visible component from report page (component_name.free) - there will be no diffrence in Preview
Sorry for my english
Thanks

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 5:21PM
    Not clear as to what you are trying to do.
  • edited 5:21PM
    How can i check, if dynamically created memo is visible on report page, when i change page orientation ?
    from poLandscape to poPortrait ?
  • gordkgordk St.Catherines On. Canada.
    edited 5:21PM
    if you are creating the memo it is up to you to place it in the correct position within it's parent object.
    or design 2 different pages one for portrait and one for landscape and decide which to use at start of report, unless you like writing code to check every object in the report.
  • edited 5:21PM
    Check if the memo's Left > page.Width - page.RightMargin (something like that)

    Or if it is on a band, check if memo.Left > band.Left + band.Width
  • gordkgordk St.Catherines On. Canada.
    edited 5:21PM
    you must also check if the width of the object from its left is greater than the page width.
    also you need to do it in every band and it will lead to a lot of code to process.
    You need to know which objects to check within each band or you will have to iterate through all the objects in each band to find the one's whose left is greater than the value.
    it is much easier to use 2 design pages and process 1 variable to decide which page you are using.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.