or
void ExportToPDF(string reportName, Telerik.Reporting.IReportDocument reportToExport) { ReportProcessor reportProcessor = new ReportProcessor(); RenderingResult result = reportProcessor.RenderReport("PDF", reportToExport, null); using (FileStream fs = new FileStream(fileName, FileMode.Create))
{ fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length); } }<httpHandlers> <add type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" validate="true"/><br> </httpHandlers> <system.webServer> <validation validateIntegratedModeConfiguration="false"/> <modules runAllManagedModulesForAllRequests="true" /> <handlers> <add name="Telerik.ReportViewer.axd_*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" path="Telerik.ReportViewer.axd" verb="*" preCondition="integratedMode,runtimeVersionv2.0"/> </handlers> </system.webServer>
public masterReport(string x)
{
InitializeComponent();
try
{
sqlDataSource1.SelectCommand =
".......";
this.sys2.ItemDataBound += new EventHandler(sys2_ItemDataBound);
}
catch (Exception)
{
throw;
}
}
void sys2_ItemDataBound(object sender, EventArgs e)
{
Telerik.Reporting.Processing.
SubReport subReport = (Telerik.Reporting.Processing.SubReport)sender;
Telerik.Reporting.Processing.
Report report = (Telerik.Reporting.Processing.Report)subReport.InnerReport;
if (report.ChildElements.Find("trasmissione", true).Length > 0)
{
subReport.Visible =
true;
}
else
{
textBox13.Visible =
true;
}
}
Please, help me. Thank you