How to disable client-side printing by using the EnableClientPrinting system property in SQL Server 2000 Reporting Services Service Pack 2 (897121)



The information in this article applies to:

  • Microsoft SQL Server 2000 Reporting Services

Beta Information

This article discusses a Beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice.

No formal product support is available from Microsoft for this Beta product. For information about how to obtain support for a Beta release, see the documentation that is included with the Beta product files, or check the Web location where you downloaded the release.
Bug #: 367411 (SQLBUDT)
SQLBUDT:367411

Introduction

This article describes how to disable client-side printing by using the new EnableClientPrinting system property that is introduced in Microsoft SQL Server 2000 Reporting Services Service Pack 2 (SP2).

MORE INFORMATION

In SQL Server 2000 Reporting Services SP2, a new Boolean system property has been added to let you disable or enable client-side printing. To disable client-side printing, set the EnableClientPrinting property to False. To enable client-side printing, set the EnableClientPrinting property to True. By default, the EnableClientPrinting property is set to True.

To set the property to False to disable client-side printing, follow these steps:
  1. Compile and then run the following Microsoft Visual Basic .NET code to set the EnableClientPrinting property to False :
    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
  2. To apply the EnableClientPrinting system property change, you must restart Microsoft Internet Information Services (IIS). To do this, click Start, click Run, type iisreset, and then click OK.
For more information about SQL Server 2000 Reporting Services, visit the following Microsoft Web site:For more information about the SetSystemProperties method, visit the following Microsoft Developer Network (MSDN) Web site: For more information about how to obtain the latest service pack for SQL Server 2000 Reporting Services, click the following article number to view the article in the Microsoft Knowledge Base:

842440 How to obtain the latest service pack for SQL Server 2000 Reporting Services


Modification Type:MajorLast Reviewed:4/12/2005
Keywords:kbhowto kbSQLServ2000ReportServSp2fix kbBug kbfix KB897121 kbAudDeveloper kbAudITPRO