how to generate dynamic crystal reports

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sureshgv
    New Member
    • Oct 2006
    • 19

    how to generate dynamic crystal reports

    i want to generate report dynamically in the formate

    select * from table where month=m and year =y

    How to do this ?very urgent..please help me
  • bplacker
    New Member
    • Sep 2006
    • 121

    #2
    Originally posted by sureshgv
    i want to generate report dynamically in the formate

    select * from table where month=m and year =y

    How to do this ?very urgent..please help me

    do the same as you would with a datagrid view.

    open a connection to the database,
    create a new data adapter (sql statement, connection name),
    fill your dataset with the dataadapter,
    fill your dataview with the table from the dataset,

    set the report source of the crystal report to your dataview

    Comment

    • magache
      New Member
      • Oct 2007
      • 1

      #3
      bplacker...

      HOW CAN I DO THIS:

      set the report source of the crystal report to your dataview ??????????????? ??????????????? ??????????????? ?????

      Comment

      • dip_developer
        Recognized Expert Contributor
        • Aug 2006
        • 648

        #4
        Originally posted by magache
        bplacker...

        HOW CAN I DO THIS:

        set the report source of the crystal report to your dataview ??????????????? ??????????????? ??????????????? ?????
        actually

        1. Set the DataSource of your report object to the Dataset or Dataview....and then.........

        2. Set the ReportSource of the CrystalReportVi ewer to your report object.

        [CODE=vbnet]
        Dim myReport As New CrystalReport1
        myReport .SetDataSource( myDataset)
        myCrystalReport Viewer.ReportSo urce = myReport
        [/CODE]

        Comment

        Working...