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

Article translations Article translations
Article ID: 897121 - View products that this article applies to.
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)
Expand all | Collapse all

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:
http://www.microsoft.com/sql/technologies/reporting/default.mspx
For more information about the SetSystemProperties method, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/aa258528(SQL.80).aspx
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

Properties

Article ID: 897121 - Last Review: March 15, 2007 - Revision: 1.4
APPLIES TO
  • Microsoft SQL Server 2000 Reporting Services
Keywords: 
kbhowto kbsqlserv2000reportservsp2fix kbbug kbfix KB897121

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com