Imports CrystalDecisions.CrystalReports.Engine
Partial Class Report
Inherits System.Web.UI.Page
Protected Sub BtnReport_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles BtnReport.Click
Dim rpt As New ReportDocument()
Dim day As String = Me.ddlDay.SelectedItem.Value & "/" & Me.ddlMonth.SelectedItem.Value & "/" & Me.txtYear.Text - 543
rpt.Load(Server.MapPath("MRBS.rpt"))
rpt.SetParameterValue("Bookings_Using", day)
Me.CrystalReportViewer1.ReportSource = rpt
End Sub
End Class