Problem with keeping distance between two tables

2 posts, 0 answers
  1. ytnytn1
    ytnytn1 avatar
    7 posts
    Member since:
    Apr 2016

    Posted 20 Aug 2016 Link to this post


    I'm using wpf reporting and I faced to problem: when the height of the top table increases, it begins to cover the bottom table. What I need to do is to keep the distance between them, and I don't know how to do it. I tried doing that using itemdatabinding event

    private void OnItemDataBinding(object sender, EventArgs args)
        table1.Location = new PointU(Unit.Cm(0.0D), Unit.Cm(1.2D + table2.Height.Value));

    but it doesn't work, because table2's actual height is unknown until report wasn't generated.

    So are there any ways to do it?  



  2. Nasko
    Nasko avatar
    1094 posts

    Posted 24 Aug 2016 Link to this post

    Hello Ivan,

    Keeping the distance between the items is actually the default behavior of the reporting engine. The distance set during design-time will be preserved at run-time even when the items grow. Thus, it is not required to do anything special to achieve this scenario.

    Please find attached a sample report demonstrating the approach.

    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top