報表檢視器工具列上的列印按鈕使用Portable Document Format (PDF),供用戶端列印在瀏覽器中檢視的 Reporting Services 報表。 新的遠端列印體驗使用 Reporting Services 隨附的 PDF 轉譯延伸模組,將報表轉譯為 PDF 格式。 您可以下載報表的 PDF 表單。 或者,如果您已安裝用於檢視 PDF 檔案的應用程式,列印按鈕會顯示頁面通用設定項目的列印對話方塊。 其中包括設定項目,例如頁面大小和方向以及 PDF 檔案預覽。 雖然依預設會啟用用戶端列印,但如果您不想提供此功能,也可以停用它。
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
Do you want to learn how to work with reports in Microsoft Dynamics 365 Business Central? In this module, you'll learn how to work with reports and the difference between preview, run, email, and print.