1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18:
Private Sub BindReportWithSelectFormula() Dim intProposalNumber As Integer = "41772" Dim intRevisionNumber As Integer = "1" Dim mySelectionFormula As String = "{Proposals.ProposalNumber} = " & _ intProposalNumber & " AND {Proposals.RevisionNumber} = " & _ intRevisionNumber Dim report As New ReportDocument() report.Load(Server.MapPath("reports/Proposal.rpt")) SetTableLocation(report.Database.Tables) CrystalReportViewer1.ReportSource = report CrystalReportViewer1.SelectionFormula = mySelectionFormula End Sub