This is a migrated thread and some comments may be shown as answers.

is it possible to lock the width of the report in designer

3 Answers 369 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Alexandre Jobin
Top achievements
Rank 1
Alexandre Jobin asked on 10 Jun 2011, 07:42 PM
hi!

i would like to know if i can prevent the designer to expand the width of the report when i move a control. If for example and i want to move a textbox to the right and that the control cross the end of the report width, the report will auto-extand and i need to change the report width to the good value again.

so is it possible to lock values in the designer?

alex

3 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 13 Jun 2011, 08:37 AM
Hi Alex,

The behavior you describe is by design and cannot be changed. The detail section is a container, so it is natural that it would grow to accommodate its children. You cannot have a children span over its parent.

Kind regards,
Steve
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Alexandre Jobin
Top achievements
Rank 1
answered on 13 Jun 2011, 01:52 PM
hi  Steve!

just to be sure that we are talking the same thing, im not talking about the rendering of the children with their parent but only in the designer when you move object (textboxes, etc...) and you overlap the end the report on the right. For example, suppose that my report have a width of 20cm and i put a table in the detail section, when i create my columns, it can push the width of the report further, for example 20,4cm. Then i must go to the report property to change the value back to 20cm.

I've build a report last week and i had to play with this value like 15 times because i wanted to adjust the with of a column and by playing with it, it have pushed the width of the report (always in the designer, not in rendering). If would be cool to be able to lock the width of the report in my opinion.

alex
0
bash
Top achievements
Rank 1
answered on 13 Jun 2011, 05:06 PM
Bonjour Alexandre - 

The solution I have found to this problem is to force the Paper size on the C# side:

public Report1()
{
    InitializeComponent();
 
    // Force the paper size:
    this.Report.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;
    this.Report.Width = new Unit(25.5, UnitType.Cm);
}
Tags
General Discussions
Asked by
Alexandre Jobin
Top achievements
Rank 1
Answers by
Steve
Telerik team
Alexandre Jobin
Top achievements
Rank 1
bash
Top achievements
Rank 1
Share this question
or