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

SubReport Column headings not being shown

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Hrushikesh Mokashi
Top achievements
Rank 1
Hrushikesh Mokashi asked on 21 Jul 2009, 02:11 PM
Hi All,

I am using 3 reports
1. rptMain
2. rptOldReport
3. rptNewReport

I am using rptSubreport1 and rptSubReport 2 as subreports in rptMain.

I am using datatable to bind both the reports.

 

Public Sub New(ByVal dtOld As DataTable, ByVal dtNew As DataTable)

 

InitializeComponent()

 

RptOldReport1.DataSource = dtOld

RptNewReport1.DataSource = dtNew

End Sub

 

It shows the data for both the reports but the problem is that it is not showing the column headings in both the reports.

If I run both the reports seperately from my aspx page directly ( i.e. not opening report as a subreport) then the columns headings are visible.
e.g
Public Sub ShowReport(Byval dt as DataTable)
 Dim objRpt  as OldReport = New OldReport()  // Or Dim objRpt  as NewReport = New NewReport()
 objRpt.DataSource = dt
End Sub


Can anyone please let me know what could be the problem?

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 21 Jul 2009, 03:24 PM
Hi Hrushikesh,

Here is a quote from our SubReport help article: "Page header/footer sections of subreports are ignored by our reporting engine by default - only the master report can have page sections. In order to have a header/footer that repeats on every page, you can consider using an unbound group (a group without any grouping criteria specified) and set its GroupHeader/FooterSection.PrintOnEveryPage = True."

All the best,
Steve
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
General Discussions
Asked by
Hrushikesh Mokashi
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or