Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Passing Multiple Values Post Reply Post New Topic
Author Message
dionismatos
Newbie
Newbie
Avatar

Joined: 23 Mar 2010
Location: Dominican Republic
Online Status: Offline
Posts: 3
Quote dionismatos Replybullet Topic: Passing Multiple Values
    Posted: 12 Dec 2011 at 8:29am
Hello All

I'm having a hard time trying to pass multiple values to my report. I'll show u my code. Thanks in advance!

Dim myParameterFields As New ParameterFields()
            Dim myParameterField As New ParameterField()
            Dim myDiscreteValue As New ParameterDiscreteValue()

            myParameterField.ParameterFieldName = "Cliente"
            myDiscreteValue.Value = lblDestino.Text
            myParameterField.CurrentValues.Add(myDiscreteValue)


            myDiscreteValue = New ParameterDiscreteValue()
            myParameterField.ParameterFieldName = "Conduce"
            myDiscreteValue.Value = txtConduce.Text
            myParameterField.CurrentValues.Add(myDiscreteValue)

            myParameterFields.Add(myParameterField)

            frmConduce.Show()

            frmConduce.CrystalReportViewer1.ParameterFieldInfo = myParameterFields
            frmConduce.CrystalReportViewer1.Refresh()
IP IP Logged
dionismatos
Newbie
Newbie
Avatar

Joined: 23 Mar 2010
Location: Dominican Republic
Online Status: Offline
Posts: 3
Quote dionismatos Replybullet Posted: 13 Dec 2011 at 2:10am
Ok so its imposible to send multiple parameters directly to crystal?
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.