Solved

How to do Reporting from vb.net

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

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

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…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

821 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