0 Replies - 3985 Views - Last Post: 26 October 2011 - 09:56 AM Rate Topic: -----

#1 Mangore  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 177
  • Joined: 11-October 08

How to show the result of DataGridView in Report

Posted 26 October 2011 - 09:56 AM

I'm using vb 2008 with DB MsAcess2007.
I create connetion with DB Manually ( not automatically by using add new datasource). and show the result in DataGridView
I know how to make report and show the data in it from DB ( if I use the automatically way ).But I don't know how to make it in Manually way.
I need how to show the result of DataGridView in report.
I hope I'm clear and Thank you fro help!
I tried this way but I don't know how to complete it

 Dim sql As String = " Select Notice,History,NumberA,Region,Price,TelL,NameP from Table1 "
        Dim dp As New OleDbDataAdapter(sql, conn)
        Dim Table1 As New DataTable
        dp.Fill(Table1)
        Form1.DataGridView1.DataSource = Table1
        Form1.ReportViewer1........

This post has been edited by Mangore: 26 October 2011 - 02:04 PM


Is This A Good Question/Topic? 0
  • +

Page 1 of 1