Results 1 to 3 of 3

Thread: Pass VB.NET value in Crystal Report.NET

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2006
    Posts
    275

    Pass VB.NET value in Crystal Report.NET

    Hi


    I have to find out how to pass VB.NET value in Crystal Report.NET

    I am using formula field.

    Actually I have to set login ID from my VB.NET program to be passed in Crystal report

    I will declare a global variable but how will I pass it in VB

    Thanks

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Pass VB.NET value in Crystal Report.NET


  3. #3
    New Member
    Join Date
    Apr 2007
    Posts
    1

    Re: Pass VB.NET value in Crystal Report.NET

    Suggestion:
    In Crystal Reports create a new Parameter Field and your formula field.
    In VB create your global variable, add a new form to your project, and then add a Crystal Reports viewer to the form.

    To pass the value to the report you can use the Form's load event something like this...

    Private Sub MyForm_Load(ByVal sender As Object, ByVal e As .....)
    dim CReport as new MyCrystalReportName
    Me.CrystalReportViewer1.SetParameterValue("CR_parameterName", VBvar)
    CrystalReportViewer1.ReportSource = CReport
    End Sub

    In Crystal Reports use the parameter in the formula field to pass the value. Hope this help.

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