Solved

How to do Reporting from vb.net

Posted on 2009-05-15
2
224 Views
Last Modified: 2013-11-26
Hi Experts

I am new to reporting and would please like to know how to do a report from VB.net. I tried to use the Reporting Wizard but that requires a dataset/datasource. But I don't have any of those in my project, I connect to my database through code(see code). Can anyone please give me some useful tips, or links to help me out a bit. Any help would be greatly appreciated.

Thanx in advance
Dim con1 As New OleDb.OleDbConnection

            Dim ds1 As New DataSet
 

            Dim da1 As New OleDb.OleDbDataAdapter

            Dim sql1 As String

            Dim bm As New BindingSource
 

            con1.ConnectionString = "Provider=PervasiveOLEDB;Data Source=" & cpath
 

            con1.Open()

            sql1 = "SELECT row FROM table"

            da1 = New OleDb.OleDbDataAdapter(sql1, con1)

            da1.Fill(ds1, "Document")

            bm.DataSource = ds1.Tables("Document")
 

            con1.Close()

Open in new window

0
Comment
Question by:Benvor
2 Comments
 
LVL 100

Expert Comment

by:mlmcc
ID: 24394824
0
 
LVL 15

Accepted Solution

by:
JackOfPH earned 500 total points
ID: 24400687
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now