Customize settings before rendering

2 posts, 0 answers
  1. Jhon
    Jhon avatar
    1 posts
    Member since:
    Feb 2015

    Posted 04 Feb 2015 Link to this post

    Hi All

    I was trying to render the report programmatically in PDF format.
    Is there a way where we can set our customize settings like indent, bold etc before rendering.

    Any help would be appreciated .
  2. Stef
    Stef avatar
    3610 posts

    Posted 06 Feb 2015 Link to this post

    Hi Jhon,

    You can create an instance of the report and change its settings before wrapping it in an report source object and passing it to the ReportProcessor. Through the Report instance you will have access to all items in its Items collection e.g.:
    var report=new MyReport();
    report.Style.BackgroundColor= Color.Yellow;
    var tb1=report.Items.Find("textBox1",true)[0] as Telerik.Reporting.TextBox;
    tb1.Style.BorderStyle.Default = Telerik.Reporting.Drawing.BorderType.Solid;
    var IRS = new InstanceReportSource(){ ReportDocument = report};

    I hope the provided information is helpful.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top