This is a migrated thread and some comments may be shown as answers.

SubReport Datasource

4 Answers 127 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Eric
Top achievements
Rank 1
Eric asked on 09 Dec 2010, 05:58 PM

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()

4 Answers, 1 is accepted

Sort by
0
Eric
Top achievements
Rank 1
answered on 09 Dec 2010, 06:15 PM
I did some more investigating by breaking on the DataBinding event of the subreport.  The subrepot has data, but the data is not displaying.  I got rid of all the filters and parameters, so it would just dump all the data in every report, but that did not help.
0
Eric
Top achievements
Rank 1
answered on 09 Dec 2010, 10:09 PM
I took out all the subreports and added them back.  Whichever subreport I add first works.  The other two do not work.
0
Steve
Telerik team
answered on 10 Dec 2010, 09:49 AM
Hello Eric,

There was a related problem that slipped into the Q3 released and was immediately addressed in an internal build, which is available for download in your account. Please upgrade and let us know if further help is needed.

Kind regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Eric
Top achievements
Rank 1
answered on 10 Dec 2010, 03:02 PM
That took care of the problem.
Tags
General Discussions
Asked by
Eric
Top achievements
Rank 1
Answers by
Eric
Top achievements
Rank 1
Steve
Telerik team
Share this question
or