Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
995
Disable Print and Export
posted

Hi

I have read the previous posts which address this issue but i cannot seem to implement.  When i run it i get the error "Object reference not set to an instance of an object."

My code looks like:

Imports Infragistics.Controls.Reports

Public Class GeneralReportViewer
Public Property PrintVisibility As Visibility

Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
Dim instance As ToolBarSettings
Dim value As Visibility

value = Windows.Visibility.Collapsed

instance.PrintVisibility = value

End Sub
End Class