This article has been archived. It is offered "as is" and will no longer be updated.
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)
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).
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 SystemImports System.Web.Services.ProtocolsClass 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 'MainEnd 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: