or
<bindings> <customBinding> <binding name="BinaryHttpBinding"> <binaryMessageEncoding> <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="16384" /> </binaryMessageEncoding> <httpTransport maxReceivedMessageSize="2147483647" maxBufferSize="2147483647" /> </binding> </customBinding></bindings>public partial class ReportViewer : Page, IReportServiceClientFactory { public ReportSettingsDTO ReportParametersObject { get; set; } public ReportViewer() { InitializeComponent(); this.rptViewer.ReportServiceClientFactory = this; this.rptViewer.Report = "WebClient.Reports.TestReport, WebClient"; this.rptViewer.RenderBegin += new RenderBeginEventHandler(rptViewer_RenderBegin); } void rptViewer_RenderBegin(object sender, RenderBeginEventArgs args) { args.ParameterValues["ParameterObject"] = serialize(); } public string serialize() { MemoryStream ms = new MemoryStream(); // Serializer the User object to the stream. DataContractSerializer ser = new DataContractSerializer(typeof(ReportSettingsDTO)); ser.WriteObject(ms, ReportParametersObject); byte[] array = ms.ToArray(); ms.Close(); return Encoding.UTF8.GetString(array, 0, array.Length); } #region IReportServiceClientFactory Members ReportServiceClient IReportServiceClientFactory.Create(System.Uri remoteAddress) { var binding = new BasicHttpBinding() { TransferMode = System.ServiceModel.TransferMode.Buffered, MaxBufferSize = int.MaxValue, MaxReceivedMessageSize = int.MaxValue, OpenTimeout = new TimeSpan(0, 15, 0), ReceiveTimeout = new TimeSpan(0, 15, 0), SendTimeout = new TimeSpan(0, 15, 0) }; var endpointAddress = new EndpointAddress(remoteAddress); return new ReportServiceClient(binding, endpointAddress); } #endregion }<add name="Npgsql Data Provider" invariant="Npgsql" support="FF" description=".Net Framework Data Provider for Postgresql Server" type="Npgsql.NpgsqlFactory, Npgsql, Version=2.0.11.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7"/>I cant seem to find an example on this site that shows changing an item (ie. TextBox) in a subreport.
I'm trying to update the textbox in the subreport, but it will not show the updated value.
I tried the following code as an example and when I debug and I can see the subreport text box. This example changes the value of all textbox items in the main report but not in the subreport.
ReportItemBase[] allTextBoxes = report.Items.Find(typeof(Telerik.Reporting.TextBox), true); int i = 0; foreach (Telerik.Reporting.TextBox textBox in allTextBoxes) { textBox.Value = (i++).ToString(); }