|
-
May 8th, 2013, 03:34 AM
#1
Thread Starter
Junior Member
Show multiple reports in report view
Hello,
I ame currently working on a planning software project.
I have created a report to print orders per day.
However i would like to add more reports to the same report view on different pages.
Is this possible?
This is the current code i ame using on the form containing the report view:
Code:
Public Class frmPrint
Dim Datum As Date
Public Sub New(ByVal Datum As Date)
InitializeComponent()
Me.Datum = Datum
End Sub
Private Sub Print_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'dsPlanlijst.Planlijst' table. You can move, or remove it, as needed.
Me.PlanlijstTableAdapter.Fill(Me.dsPlanlijst.Planlijst, Datum)
Me.ReportViewer1.RefreshReport()
End Sub
End Class
-
May 8th, 2013, 05:01 AM
#2
Re: Show multiple reports in report view
One ReportViewer can only display one report at a time, but that report can contain sub-reports. That's an issue for your report design though, not for your form containing the ReportViewer control. If you don't want to create sub-reports and then have the main report load them, you'll need to use multiple ReportViewer controls or else change the report that it's displaying.
-
May 8th, 2013, 06:29 AM
#3
Thread Starter
Junior Member
Re: Show multiple reports in report view
Okay so i made a main report and placed a subreport inside of it.
When i show the subreport itself in the Report viewer it gets displayed with no problem.

However when i try to show the main report with the subreport in it i get the following error:

The code on the report viewer form is still the same as in my last post.
-
May 8th, 2013, 07:48 AM
#4
Re: Show multiple reports in report view
Did you do as instructed, i.e. did you check the log files for more information?
-
May 8th, 2013, 07:51 AM
#5
Thread Starter
Junior Member
Re: Show multiple reports in report view
Found the logs but i cannot realy determine what exactly is wrong from it.
This is what the log contained:
log.txt
Last edited by nechtmarrie; May 8th, 2013 at 07:59 AM.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|