CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Pass parameter

  1. #1
    Join Date
    Aug 2009
    Posts
    5

    Pass parameter

    how to pass multiple parameters in crystal report 11 ??????




    thanks in advance

    jawad khatri

  2. #2
    Join Date
    Apr 2008
    Location
    Pittsburgh
    Posts
    103

    Re: Pass parameter

    I'm assuming that you mean passing parameters to a subreport, right? You simply change the links to the report and pass all of the fields and/or parameters that you want to.

  3. #3
    Join Date
    Nov 2007
    Posts
    13

    Re: Pass parameter

    If you are referring to Passing a Parameter to a report via code, here is a bit of information.


    1) The parameter name & data type need to be define in the report template (the rpt file).

    2) The parameter value gets passed using the SetParameterValue() method of the rpt object prior to the rpt being launched via a ReportViewer.

    rpt.SetParameterValue("PrintDate", sPrintDate)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured