Greetings,
New Member and First Time Posting...
I created a Visual Basic Application using Visual Studio 2013.
I do not connect to a database, but instead read in an XML file and have the contents stored in my internal Tables.
I created the schema DataSet1 and all its Tables in Visual Basic Designer
To populate the Textbox on my form, I use TextBoxIncCmdrName.Text = DataSet1.Tables("TableICSCover").Rows(0)("txtIncCmdrName")
I have a module that defines DataSet1 as Public Property DataSet1 As DataSet = MDIParentForm.DataSet1
This works well.
I want to use ReportViewer and thought it would be the same process, but after days of trying to figure it out, I am not close to solving it. At first, I thought it would be as easy as just inserting a Textbox on the Report Form, then using an Expression like = DataSet1.Tables("TableICSCover").Rows(0)("txtIncCmdrName")
or =Fields!DataSet1.Tables("TableICSCover").Rows(0)("txtIncCmdrName"), But I receive reference errors. It doesn't 'see' my DataSet1. All examples on how to configure Data Sources in ReportViewer ALWAYS shows an example of connecting to a SQL Database (which I do not do). I cannot find an example where it illustrates on how to create a report in ReportViewer and populated the Textboxes with data from an internal DataSet1 Tables.
Here is the Question:
If I am using an Internal Local DataSet1 to populate my Textboxes on Forms, What is the process/coding of ReportViewer to pull in data from my DataSet1?
Any ideas would be appreciated. If you need more info, please let me know...
New Member and First Time Posting...
I created a Visual Basic Application using Visual Studio 2013.
I do not connect to a database, but instead read in an XML file and have the contents stored in my internal Tables.
I created the schema DataSet1 and all its Tables in Visual Basic Designer
To populate the Textbox on my form, I use TextBoxIncCmdrName.Text = DataSet1.Tables("TableICSCover").Rows(0)("txtIncCmdrName")
I have a module that defines DataSet1 as Public Property DataSet1 As DataSet = MDIParentForm.DataSet1
This works well.
I want to use ReportViewer and thought it would be the same process, but after days of trying to figure it out, I am not close to solving it. At first, I thought it would be as easy as just inserting a Textbox on the Report Form, then using an Expression like = DataSet1.Tables("TableICSCover").Rows(0)("txtIncCmdrName")
or =Fields!DataSet1.Tables("TableICSCover").Rows(0)("txtIncCmdrName"), But I receive reference errors. It doesn't 'see' my DataSet1. All examples on how to configure Data Sources in ReportViewer ALWAYS shows an example of connecting to a SQL Database (which I do not do). I cannot find an example where it illustrates on how to create a report in ReportViewer and populated the Textboxes with data from an internal DataSet1 Tables.
Here is the Question:
If I am using an Internal Local DataSet1 to populate my Textboxes on Forms, What is the process/coding of ReportViewer to pull in data from my DataSet1?
Any ideas would be appreciated. If you need more info, please let me know...