Quantcast
Channel: Crystal Reports
Viewing all articles
Browse latest Browse all 1507

Parameter Fields and Formula Fields

$
0
0

I have a Crystal Report that I need to send both Paramater information to and Formla information to. I have the Parameter information working fine, but I can't get the Formula information sent. The Formula is really just the title of the report. Here is what I have so far;

code behind:

        Dim paramFields As New ParameterFields()
        Dim paramField As New ParameterField()
        Dim discreteVal As New ParameterDiscreteValue()

        Dim DateSelected As String = lbBoardMeetingDates.SelectedItem.Text

        paramField.ParameterFieldName = "@BoardMeeting_Dt" ' This is how you can send Parameter Value to the Crystal Report
        'Set the first discrete value and pass it to the parameter.

        discreteVal.Value = "03/27/2014"
        'Value of Parameter

        paramField.CurrentValues.Add(discreteVal)
        paramFields.Add(paramField)

        CrystalReportViewer1.ParameterFieldInfo = paramFields

        CrystalReportViewer1.Visible = True

What do I need to add to send the formula field of @Heading the value of "Licensees approved at " & DateSelected & " Board Meeting"


Viewing all articles
Browse latest Browse all 1507

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>