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
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;
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.