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

Change Margin at Runtime

2 Answers 242 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Levi
Top achievements
Rank 1
Levi asked on 22 Nov 2011, 03:56 AM
Hello,

   I have a report and viewed in silverlight, my problem is how can I change the margin at runtime? Because the user has the option to change the margin anytime.

  Thank you.

2 Answers, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 23 Nov 2011, 03:26 PM
Hello Levi,

Please check the Report Life Cycle article to get a better view of how our tool works.
In order to change the report's appearance you need to modify its definition. So to visualize the changes you need to refresh the report.
If that suits you (and you want to do it outside of the report) you can expose public method or property of the report class. 

Greetings,
Elian
the Telerik team

Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!

0
YARARMAN
Top achievements
Rank 1
answered on 13 Dec 2012, 02:15 PM
private void btnLoadInvoice_Click(object sender, EventArgs e)
{          
    _Report.PageSettings.Margins.Left = Telerik.Reporting.Drawing.Unit.Mm(5);
    _Report.PageSettings.Margins.Top = Telerik.Reporting.Drawing.Unit.Mm(5);
}
Tags
General Discussions
Asked by
Levi
Top achievements
Rank 1
Answers by
Elian
Telerik team
YARARMAN
Top achievements
Rank 1
Share this question
or