Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 235
  • Last Modified:

How to do Reporting from vb.net

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
Benvor
Asked:
Benvor
1 Solution
 
mlmccCommented:
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now