The sample is C#. No good to me I'm afraid.
Main Topics
Browse All TopicsI'm developing an application in VB.NET using Visual Studio 2008.
I've successfully used the Microsoft Reporting Wizard to generate reports from an SQL server database and from SQL compact database files.
I've created an untyped dataset containing a single table in my main form. My application is filling the table with data at runtime and displaying the data in a datagridview.
Is it possible to report the contents of the table contained in the untyped dataset object in the form? The reporting wizard doesn't seem to offer me the option of choosing the dataset as my datasource.
I've tried adding and configuring the dataset in the solution explorer. This dataset IS visible to the report designer now, but I can't work out how to refer to it from my code!! Should it be an embedded resource? How do I get at it from the code? That must be a simple one to solve!
Or, am I just going about the whole thing the wrong way?!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
you can remove the ; and the job is almost done!
there are also free tools like http://www.developerfusion
Given that I think I'm almost there anyway, I really don't want to spend any time discovering the delights of converting c code to vb just to figure out how to report off of a dataset!! I can't even open that sample in VS2008.
What I'm trying to do should be quite simple and I've got 75% of it working! Let me summarise.
I would like to:
1) Create a dataset containing a single table, somewhere in my project! In the form maybe? In the solution explorer?
2) Add a datagridview to a form and configure it to display the contents of the table.
3) Create another form containing a reportviewer that will display the contents of the table and allow for printing.
I've got steps 1 and 2 working fine (with the dataset in the form) but the dataset is not available to the report wizard.
I've added the dataset as a new item in the solution explorer and now the report wizard can 'see' it, but I'm not sure how I can write any data to it. So, I created an instance of the dataset and now I can add rows to the instance, but I'm not sure how I can pass the instance to the datagridview or the report.
This should be easy, right? What's the obvious bit that I'm missing!!
Check out this excellent article on Microsoft Reports, written by my good friend Jorge Paulino:
http://www.codeproject.com
Additional reading:
http://www.codeproject.com
Business Accounts
Answer for Membership
by: emoreauPosted on 2009-11-03 at 04:35:41ID: 25728277
check the "hello world" samplre from http://www.gotreportviewer .com/