or
protected void Page_Load(object sender, EventArgs e)
{
Hashtable deviceInfo = new Hashtable();
deviceInfo["JavaScript"] = "this.print({bUI: false, bSilent: true, bShrinkToFit: true});";
ReportProcessor reportProcessor = new ReportProcessor();
RenderingResult result = reportProcessor.RenderReport("PDF", new BarcodesReport(), deviceInfo);
string fileName = result.DocumentName + ".pdf";
Response.Clear();
Response.ContentType = result.MimeType;
Response.Cache.SetCacheability(HttpCacheability.Private);
Response.Expires = -1;
Response.Buffer = true;
Response.BinaryWrite(result.DocumentBytes);
Response.End();
}
<
div
style
=
"float:left;width:850px;"
>
<
div
style
=
"height:792px;"
>
<
telerik:ReportViewer
ID
=
"ReportViewer1"
runat
=
"server"
style
=
"border:1px solid #ccc;"
width
=
"99%"
height
=
"792px"
ReportBookID
=
"ReportBookControl1"
Skin
=
"Office2007"
>
<
resources
reportparameterspreviewbuttontext
=
"View Report"
/>
</
telerik:ReportViewer
>
</
div
>
</
div
>
Hi,
For crystal report, we have a function call .Load(...) to load report by specific path,
eg:
CrystalDecisions.CrystalReports.Engine.ReportDocument oRpt = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
oRpt.Load(D:\Project Source Code\MCS2011\CRReason.rpt);
Is that any similar function like .Load(...) method for telerik reporting?