Results 1 to 24 of 24

Thread: Printing in VB.net

Hybrid View

  1. #1
    Frenzied Member mickey_pt's Avatar
    Join Date
    Sep 2006
    Location
    Corner of the Europe :)
    Posts
    1,959

    Re: Printing in VB.net

    You've added a new report to your project?

    Right click in the solution, add new item, and add new crystal report.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2009
    Posts
    429

    Re: Printing in VB.net

    Quote Originally Posted by mickey_pt View Post
    You've added a new report to your project?

    Right click in the solution, add new item, and add new crystal report.
    yup added.. condition is same..
    Code:
    Dim constr As SqlConnection
            constr = New SqlConnection("xxxx")
            Dim cmd As SqlCommand
            cmd = New SqlCommand
            Dim da As SqlDataAdapter
            constr.Open()
            da = New SqlDataAdapter("Select name from tbl", constr)
            Dim ds As New DataSet
            da.Fill(ds)
            DataGridView1.DataSource = ds.Tables(0)
            Dim s As New CrystalReport1
            s.SetDataSource(ds.Tables(0))
            CrystalReportViewer1.ReportSource = s
            CrystalReportViewer1.Show()
            constr.Close()

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