使水晶报表中的TextObject可见为false

时间:2019-06-30 21:12:11

标签: vb.net

使用Visual Studio 2013和Button1 ..当我尝试制作名为(Text150)的TextObject时visible = False ..在此行下出现错误(TextObject1.visible = False)。如何制作TextObject或Box在Crystal报表中,可见=否 这是我的代码:

   Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
   Dim Report1 As New Crystal1

   If TextBox1.Text = VbNullString Then
   Dim TextObject1 As CrystalDecisions.CrystalReports.Engine.TextObject = Report1.Section2.ReportObjects("Text150")
   TextObject1.visible = False
   End If

   Dim Frm As New Form2
    Me.Dispose()
    Frm.Show()
    Frm.CrystalReportViewer1.ReportSource = Report1
    Frm.CrystalReportViewer1.Zoom(100%)
    End Sub

0 个答案:

没有答案