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
An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
|
http://www.telerik.com/help/reporting/designing-reports-reportbook-web-viewer.html
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ClinicReports.aspx.cs" Inherits="BHS_WebReports.ClinicReports" %><%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %><%@ Register assembly="Telerik.ReportViewer.WebForms, Version=6.0.12.215, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head runat="server"> <title>BHS Clinical Reports</title></head><body> <form id="form1" runat="server"> <div> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="1000px" Width = "900px" ReportBookID="ReportBookControl1"> </telerik:ReportViewer> <telerik:ReportBookControl ID="ReportBookControl1" runat="server"> <Reports> <telerik:ReportInfo Report="BHS_Clinic_Activity_Reports.ClinicMasterIntakes, BHS_Clinic_Activity_Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" /> <telerik:ReportInfo Report="BHS_Clinic_Activity_Reports.ClinicMasterReferrals, BHS_Clinic_Activity_Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"> </telerik:ReportInfo> </Reports> </telerik:ReportBookControl> </div> </form></body></html>Blue circled is actual width. How do I increase the width to Red Circled?
Thanks for your help.
gc_0620
I have a lot of reports developed using Q3 2009 version of telerik reporting. Before developing new reports, we want to ensure that the existing reports work as they used to after upgrading to latest version of telerik reporting. But all the reports which use subreport fail compilation with the error: 'DataItem' is not a member of 'Telerik.Reporting.Processing.SubReport'.
All the reports use objectdatasource.
Private Sub SubReport1_NeedDataSource(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubReport1.NeedDataSource
Dim subReport As Telerik.Reporting.Processing.SubReport = DirectCast(sender, Telerik.Reporting.Processing.SubReport)
subReport.InnerReport.DataSource =
DirectCast(subReport.DataItem, System.Data.DataRowView)("subreportList")
End Sub
Please suggest what needs to be done here so that I can quickly fix these existing reports and then move to development of new reports
Thanks in advance
public ReportWrapper(){ InitializeComponent(); this.rptViewer.RenderBegin += new Telerik.ReportViewer.Silverlight.RenderBeginEventHandler(rptViewer_RenderBegin); this.Loaded += ReportWrapper_Loaded; this.rptViewer.ReportServiceUri = new Uri("http://webserver/reportserver/reportservice.svc"); this.rptViewer.Report = "ReportLib.TestReport";}void rptViewer_RenderBegin(object sender, Telerik.ReportViewer.Silverlight.RenderBeginEventArgs args){ args.ParameterValues["ID"] = ID;}