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

Customize settings before rendering

1 Answer 90 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jhon
Top achievements
Rank 1
Jhon asked on 04 Feb 2015, 11:07 AM
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 .

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 06 Feb 2015, 03:46 PM
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.

Regards,
Stef
Telerik
 

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.

 
Tags
General Discussions
Asked by
Jhon
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or