人生就是修炼 发表于 2022-2-18 22:43:44

VB.NET的Winform参数的传递

本帖最后由 人生就是修炼 于 2022-2-18 22:55 编辑

         Dim file_name As String = "..\..\PageReport1.rdlx"

      Dim pageReport As New GrapeCity.ActiveReports.PageReport(New System.IO.FileInfo(file_name))

      Dim pageDocument As New GrapeCity.ActiveReports.Document.PageDocument(pageReport)

      pageReport.Report.ReportParameters(0).DefaultValue.Values.Clear()
      pageReport.Report.ReportParameters(0).DefaultValue.Values.Add(编号.Text)

      Viewer1.LoadDocument(pageDocument)

人生就是修炼 发表于 2022-2-18 22:43:45

问题已经解决,就是我写的代码

Bella.Yuan 发表于 2022-2-21 08:50:51

人生就是修炼 发表于 2022-2-18 22:56
问题已经解决,就是我写的代码

:hjyzw:
页: [1]
查看完整版本: VB.NET的Winform参数的传递