how to disable print option of reports in jsp/java servlet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sarika81286
    New Member
    • Jan 2014
    • 6

    how to disable print option of reports in jsp/java servlet

    how to disable print option of reports in jsp/java servlet program .
    if any body have any idea please help...
  • 2147483648
    New Member
    • Feb 2014
    • 11

    #2
    instead of enable u can use disable
    i hope ur requirement suits,
    Please reply if any mistake...

    Code:
    Imports System
    Imports System.Web.Services.Protocols
    Class Sample
       Public Shared Sub Main()
    Dim rs As New ReportingService()
          rs.Credentials = System.Net.CredentialCache.DefaultCredentials
            Dim props(0) As [Property]
            Dim setProp As New [Property]
            setProp.Name = "EnableClientPrinting"
            setProp.Value = “False” 
            props(0) = setProp
            Try
                rs.SetSystemProperties(props)
            Catch ex As System.Web.Services.Protocols.SoapException
                Console.Write(ex.Detail.InnerXml)
            Catch e as Exception
                Console.Write(e.Message)
            End Try
        End Sub 'Main
    End Class 'Sample
    Last edited by Niheel; Feb 24 '14, 09:39 AM. Reason: merged code and added details into one post, tagged the code, thanks for your post

    Comment

    Working...