我的报告中有一个GroupHeader,我有这个代码,但不起作用:
Private Sub GroupHeader2_BeforePrint(sender As System.Object, e As System.Drawing.Printing.PrintEventArgs) Handles GroupHeader2.BeforePrint
If lblDescription.Text = "" Then
GroupHeader2.Visible = False
End If
End Sub
我还添加了标签CanShrink = true
有人能告诉我我做错了什么吗?