Solved

How to do Reporting from vb.net

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

Expert Comment

by:mlmcc
ID: 24394824
0
 
LVL 15

Accepted Solution

by:
JackOfPH earned 500 total points
ID: 24400687
0

Featured Post

Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Nested forach loop to linq 3 42
reading an excel file vb.net 2 46
SSIS Column mapping 5 40
Changing TableLayoutPanel Locations to Specific XY Locations 7 23
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…
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…

734 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