Crystal Report PUSh Method

  • ''''''''''''''''' Push Method '''''''''''''''''''
    '1) First Make Dataset and Bind Crystal Report with dataset not to complete dtabase bind .
    '2) when you make dataset and bind your crystal report you see your dataset in projectData
    '3) from codebehind when you connect your dataset with crystal report makesure your datset name is same as you created from design.
    '4) when bind crystal report with dataset drag drop field from DatabaseField in crystal report fieldexplorer in details colum otherwise if you drop field in header colum only one row show.

      'Dim con As New OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=""")
    'Dim cmd As New OleDbCommand("Select * from Clients", con)
    'Dim da As New OleDbDataAdapter(cmd)

    'Dim ds As New DataSet
    'da.Fill(ds, "Clients")
    'Dim ObjReport2 As New ReportDocument()


    'CrystalReportViewer1.ReportSource = ObjReport2

      'Dim con As New SqlConnection("Data Source="";Initial Catalog="";Persist Security Info=True;User ID=sa;Password=zrg")
    'Dim cmd As New SqlCommand("Select * from Config", con)
    'Dim da As New SqlDataAdapter(cmd)

    'Dim ds As New DataSet
    'da.Fill(ds, "Config")
    'Dim ObjReport2 As New ReportDocument()


    'CrystalReportViewer1.ReportSource = ObjReport2

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week