Está en la página 1de 1

Dim num As String num = Session("a") MsgBox(num) Dim str As String str = "select * from employee where empcode='"

& num & "'" Dim da As New SqlDataAdapter(str, con) Dim ds As New Data.DataSet da.Fill(ds, "employee") CrystalReportViewer1.Visible = True Dim myrpt As New ReportDocument myrpt.Load(Server.MapPath("x.rpt")) myrpt.SetDataSource(ds) CrystalReportViewer1.ReportSource = myrpt