简体   繁体   中英

Visual Studios 2015 Crystal Reports, Cannot add a parameter to a report

Create New Parameter form Trying to add a parameter to my crystal report and it won't let me pass this screen, clicking ok does nothing I've tried closing it and restarting it. I can't find anyone else posting about this problem but maybe it's because I don't know how to properly word my problem. If anyone could help I would greatly appreciate it.

I found my old installer for the crystal reports and reinstalled it. That seemed to have worked.

This so simple, c this-

  1. At first create a parameter Name ( parametertest or your desire name) Type String in Crystal Reports
  2. Put any where on your Report
  3. Call your that Report this way-

Code-

  Private Sub ParameterButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ParameterButton.Click
    Dim filterstring As String = ""

    Dim MyReport As CrystalDecisions.CrystalReports.Engine.ReportDocument = New ParameterPassReport
    MyReport.SetParameterValue("ParameterTest", ParameterTextBox.Text)
    ShowReport(MyReport, filterstring, CrystalReportViewer1)
End Sub

Result-

文本框明智的参数传递

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM