Click here to Skip to main content
16,017,238 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
This is my code for load Report:
C#
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If Not IsPostBack() Then
Try

                Dim ds As DataSet
                Dim parameters As Object() = New Object() {""}
                ds = ConnectionSQL.GetDataSet("Get_ThongTinThueBaoIn", parameters)

                ds.Tables(0).TableName = "ThueBao"
                
                Dim rp As New CrystalReport
                rp.SetDataSource(ds)
                CrystalReportViewer1.ReportSource = rp

            Catch ex As Exception
                ScriptManager.RegisterStartupScript(Me, Me.[GetType](), "Thông báo", "alert('Lỗi:" + ex.Message & "');", True)
            End Try

        End If
    End Sub


and result

https://lh3.googleusercontent.com/-PDjF6KF6BNU/Uko-2pX1W_I/AAAAAAAAA9Q/wneDB3cDFdY/w957-h548-no/untitled.jpg[^]

that's right, but when click to one of row in group tree, it show error dialog:

https://lh3.googleusercontent.com/-zrxFZ27A6aA/Uko_bxYdX-I/AAAAAAAAA9Y/nSj12XHQgvQ/w957-h471-no/untitled1.jpg[^]

thanks for help.
Posted
Updated 30-Sep-13 18:28pm
v2

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900