Solved

How to do Reporting from vb.net

Posted on 2009-05-15
2
225 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
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…

813 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

17 Experts available now in Live!

Get 1:1 Help Now