We help IT Professionals succeed at work.
Get Started

How pass parameters in VB.net 2008 using the CrystalReportViewer?

EYoung asked
Last Modified: 2013-11-05
I am new to VB.net 2008 (Windows forms) but have done a lot of applications in VB6.  I am writing a new vb.net 2008 application and I want to call a Crystal Reports 2008 (Vendor_Master.rpt) that I have included in my application.  In VB6, the way I passed parameters was as follows:

Dim Report As dsrVendor_Master
Set Report = New dsrVendor_Master
Report.EnableParameterPrompting = False
Report.ParameterFields(1).AddCurrentValue mReport_Sort_Order_Parm
Report.ParameterFields(2).AddCurrentValue mReport_Dollars_Parm

Now in VB.net 2008 I don't know how to pass parameters to a Crystal Report using the CrystalReportViewer.  Below is the code I currently am trying in the application but it errors out:

Public Class crvVendor_Master
    Private Sub crvVendor_Master_Activated(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Activated
        CrystalReportViewer1.ShowLogo = False
    End Sub
End Class

Thank you for any help.
Watch Question
Senior Consultant
Most Valuable Expert 2011
Top Expert 2013
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE