Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to do Reporting from vb.net

Posted on 2009-05-15
2
Medium Priority
?
232 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 101

Expert Comment

by:mlmcc
ID: 24394824
0
 
LVL 15

Accepted Solution

by:
JackOfPH earned 2000 total points
ID: 24400687
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!

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

721 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