Results 1 to 2 of 2

Thread: How To Print Data from form in Desktop Application in VB.Net

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    152

    Exclamation How To Print Data from form in Desktop Application in VB.Net

    Hi all,

    i have created one Desktop Application in Vb.net i have one form which containn the datagrid and othere controls (TextBox), i have one buton on same form when i click on this button the Data on this form should get display how can i do this,any help will appriciacted
    thanx in advance.

    Regards,
    Nilesh Thakur.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: How To Print Data from form in Desktop Application in VB.Net

    Search MSDN for DataAdapter.fill:

    VB Code:
    1. Dim SelectQuery As String = "SELECT * FROM Customers"
    2. Dim adapter As New SqlClient.SqlDataAdapter(SelectQuery, YOURCONNECTIONSTRING)
    3. Dim ds As New DataSet("Northwind")
    4. adapter.Fill(DsNorthwind1,"Customers")
    5. DataGrid1.DataSource = ds

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width