Passing Multiple Parameter in crystal reports from VB.Net

How to pass multiple parameters in crystal report from VB.Net

i want to pass 3 parameters (i have created the same in crystal report design view)

parameter names are: vBranchCode, vFromDate and vToDate

note: vfromdate and vToDate is for getting records between two date

How to do this? Please help me. regards, Sensa

Passing Multiple Values to a single Crystal Reports parameter from VB.net

I am using Visual Basic in Visual Studio 2012 with Crystal Reports for Visual Studio. I have a parameter in a Crystal Report that can accept multiple values (for instance: Regions). How do I pass mul

Passing datasource as parameter in Crystal Reports

I am using crystal reports 2008. We want to convert actuate reports into crystal reports. In actaute reports we are passing datasource, username and password as parameters and in each section we are u

Crystal Reports – Passing value from one parameter to another

Crystal Version: 2008 I have 2 date parameters (start date and end date). I want to create an initial Boolean parameter; that if, ‘True’ automatically sets the 2 date parameters to specific dates, if

Parameter field in Crystal Reports

How to use the parameter field to get values from dataset in Crystal Reports? How can I assign a SQL query to the parameter field?

Crystal Reports : passing parameters

I’m using Crystal Reports in my asp.net application. I need to pass string as parameter to Crystal Reports that looks like : Sample String How can I do it? Thanks

Crystal Reports: Passing Multiline Parameter Values

I want to pass some parameters to a Crystal Report like this: ReportDocument.DataDefinition.FormulaFields[parameterName].Text = ‘Text’; This workes fine unless I want to pass a multiline textbox from

Crystal Reports – Convert parameter to text

Crystal Version: Crystal Reports 2008 I have a string parameter that has multiple options: Team 1 Team 2 Team 3… Team 16 I want to show which team(s) the user selects on the report. User selected: T

Multiple Records On Crystal Reports

I have designed a single account ledger in Crystal reports and it works very well. I don’t know how to design multiple account Crystal Reports?. The reports is designed by ADO.Net Dataset as follow:

multiple groups in crystal reports

How can I use multiple groups -which are not nested! – in Crystal Reports? A little Example of what i want to do: -hire car header –rentals header (group) —rental from 01-02-2008 to 01-06-2008 —

c# passing parameters to crystal reports error “Missing Parameter Values”

I’ve been porting a VB app to C#. All crystal reports work except this one. I’ve debugged, verified the parameter names, and followed the information I found on here. I get the error Missing Paramete

Answers

private void Page_Load(object sender, System.EventArgs e)
{
    if(!IsPostback)
    {
        CrystalReportViewer1.DataBind();
        SetParameterFields("vBranchCode", "branch code");        
        SetParameterFields("vFromDate", "Some Date");
        SetParameterFields("vToDate", "Some Date");
        CrystalReportViewer1.RefreshReport();
    }
}

protected void SetParameterField (string paramName, string paramValue)
{
    ParameterField pfield = CrystalReportViewer1.ParameterFieldInfo[paramName];
    ParameterDiscreteValue pval = new ParameterDiscreteValue();
    pval.Value = paramValue;
    pfield.CurrentValues.Add(pval); 
}