Results 1 to 2 of 2

Thread: VB.Net / Crystal Report 2008

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2002
    Posts
    113

    VB.Net / Crystal Report 2008

    I am having trouble passing in an integer as a parameter to my report.
    Here's the code that is being executed from a click event of pushbutton:

    Code:
    Dim fp As New frmPreview
    fp.CrystalReportViewer1.ReportSource = txtLabelFmt.Text                
    fp.CrystalReportViewer1.ParameterFieldInfo(0).CurrentValues.AddValue(Val(tvNewOrders.SelectedNode.Tag))
              
    fp.CrystalReportViewer1.Refresh()
    fp.ShowDialog()
    Any suggestions ?

  2. #2
    Hyperactive Member
    Join Date
    Dec 2007
    Location
    Somewhere else today
    Posts
    355

    Re: VB.Net / Crystal Report 2008

    Try this:

    Code:
    ReportName.SetParameterValue(parametername, variable)
    Computerman
    It was much easier in VB6, but I am now liking Vb.Net alot more.

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