Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Region Next to a region

edited March 2004 in General
How can you get a region that is next to another region to stretch with it?

They are not on top of each other but rather side by side.

Also, i haven't seen anyone comment further on my other issue of regions
not drawing correctly.

Thanks.

Comments

  • edited March 2004

    There is nothing built into ReportBuilder to support this.

    You can use the OnDrawCommandCreate event for each Region to get the
    reference to the DrawCommand and then use the Band.AfterGenerate event to
    modify the height of the shorter of the two.




    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2004

    Your other issue is being handled by Nico - he is out of the office today
    and will be back on Monday.


    --
    Nard Moseley
    Digital Metaphors Corporation
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited March 2004
    Nard Moseley (Digital Metaphors) wrote:


    Do you have an example of this? I tried it and it would appear the
    drawcommand is destroyed by the time i try to reference it in the
    aftergenerate, unless i did it wrong.
  • edited March 2004
    Ok i figured out why it was blowing up and fixed that but it still seems
    to have no affect.

    i set the drawcommandobject1.height equal to the drawcommandobject2.height

    Is this correct? it appears to do nothing;

  • edited March 2004
    Also the drawcommandobject1 and drawcommandobject2 (from mey ppregion1
    and ppregion2) height's are both 60000 which is what they were original
    set to. It would appear, unless i'm incorrect, that after it stretchs
    the height value doesn't get changed. should i go off of a different value?

  • edited March 2004

    Here is a simple example that I created...

    http://www.digital-metaphors.com/tips/SideBySideUniformRegions.zip



    --
    Nard Moseley
    Digital Metaphors
    http://www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.