Microsoft KB Archive/897121

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

Article ID: 897121

Article Last Modified on 3/15/2007

-

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)



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:   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 = &quot;EnableClientPrinting&quot; 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  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

Keywords: kbhowto kbsqlserv2000reportservsp2fix kbbug kbfix KB897121

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.