I have a report with three subreports. The FilesAttached subreport is working, but the other two subreports do not show any data. Here is my binding code. Is there something I am missing? Where else should I look?
Dim summaryReport As New telSummaryReport summaryReport.DataSource = DS.Tables("SCR") summaryReport.subNotes.ReportSource.DataSource = DS.Tables("Notes") summaryReport.subFilesAttached.ReportSource.DataSource = DS.Tables("Files") summaryReport.subCCB.ReportSource.DataSource = DS.Tables("Decisions") Dim reportProcessor As Telerik.Reporting.Processing.ReportProcessor = New Telerik.Reporting.Processing.ReportProcessor() Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("PDF", summaryReport, Nothing) HttpContext.Current.Response.Clear() HttpContext.Current.Response.ContentType = result.MimeType HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Private) HttpContext.Current.Response.Expires = -1 HttpContext.Current.Response.Buffer = True HttpContext.Current.Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", filename)) HttpContext.Current.Response.BinaryWrite(result.DocumentBytes) HttpContext.Current.Response.End()<body> <div style="width: 700px; margin-left: auto; margin-right: auto;"> <a href='/Patients/Show/<%= ViewData["PatientId"] %>' class="button">Current User</a><br /> <br /> <script runat="server"> //protected override void OnPreRender(EventArgs e) { // ReportViewer1.Report = new Report1(); // base.OnPreRender(e); //} public override void VerifyRenderingInServerForm(Control control) { // to avoid the server form (<form runat="server">) requirement } protected override void OnLoad(EventArgs e) { base.OnLoad(e); // bind the report viewer var priliminaryReport = new PatientPriliminaryReport(); priliminaryReport.ReportParameters["patientId"].Value = ViewData["PatientId"]; priliminaryReport.ReportParameters["userId"].Value = ViewData["UserId"]; ReportViewer1.Report = priliminaryReport; } </script> <form id="Form1" runat="server"> <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="1100px" Width="700px"> </telerik:ReportViewer> </form> </div></body>namespace Faq.Reports { using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using Telerik.Reporting; using Telerik.Reporting.Drawing; /// <summary> /// Summary description for PatientPriliminaryReport. /// </summary> public partial class PatientPriliminaryReport : Telerik.Reporting.Report { public PatientPriliminaryReport() { // // Required for telerik Reporting designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // } }}An error has occurred while processing Table 'table1':
Group with name 'Group1' already exists. Groups should have unique names.
Could someone please help me to attack that problem?
Hi,
I have gone through online documentation of Telerik Reporting tool for Silverlight. The documentation mentions that Silverlight Report Viewer would reside on client side and it would interact with Telerik Reporting WCF service residing on server.
For my scenario, we don’t want to have any WCF component. My Silverlight application is interacting with Java web service. On similar lines, can we have Telerik Reporting Service exposed over Java web service?
I user exactly below code, But it still show me o pop up to choose Open or Save PDF file. I use Q2_2010_v4_1_10_921
Sub ExportToPDF(ByVal reportToExport As Telerik.Reporting.Report) Dim reportProcessor As New ReportProcessor() Dim result As RenderingResult = reportProcessor.RenderReport("PDF", reportToExport, Nothing) Dim fileName As String = result.DocumentName + ".pdf" Response.Clear() Response.ContentType = result.MimeType Response.Cache.SetCacheability(HttpCacheability.Private) Response.Expires = -1 Response.Buffer = True Response.AddHeader("Content-Disposition", String.Format("{0};FileName=""{1}""", "attachment", fileName)) Response.BinaryWrite(result.DocumentBytes) Response.End() End Sub '. . . ' Sample call to ExportToPDF() ExportToPDF(New Report1())
Private Sub MasterReport_ItemDataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.ItemDataBindingDim unitX As Drawing.Unit = Drawing.Unit.Inch(0)Dim unitY As Drawing.Unit = Drawing.Unit.Inch(0)Dim size As New Drawing.SizeU(Drawing.Unit.Inch(0.01), Drawing.Unit.Inch(0.01))Dim ds As DataSet = TryCast(Me.DataSource, DataSet)Dim index As Integer = 0Me.DetailSection1.Items.Clear()For Each dr As DataRow In ds.Tables(0).Rows Dim d As New MyData() 'internal object that executes spocs Dim subReport As New Telerik.Reporting.SubReport Dim rpt As New NameOfSubReport subReport.ReportSource = rpt d.StoredProc = "StoredProcedureName" d.Parameters.Add("@PersonID", SqlDbType.Int).Value = dr("PersonID") subReport.ReportSource.DataSource = d.ExecuteStoredProcToDataset subReport.Location = New Drawing.PointU(unitX, unitY) subReport.Size = size Me.DetailSection1.Items.Add(subReport) unitY = unitY.Add(Drawing.Unit.Inch(0.1))NextEnd Sub