Partilhar via


Classe ServerReport

Represents a report that is processed on the report server.

Hierarquia de herança

Object
  Microsoft.Reporting.WebForms.Report
    Microsoft.Reporting.WebForms.ServerReport

Namespace:  Microsoft.Reporting.WebForms
Assembly:  Microsoft.ReportViewer.WebForms (em Microsoft.ReportViewer.WebForms.dll)

Sintaxe

'Declaração
<SerializableAttribute> _
Public NotInheritable Class ServerReport _
    Inherits Report _
    Implements ISerializable
[SerializableAttribute]
public sealed class ServerReport : Report, 
    ISerializable
[SerializableAttribute]
public ref class ServerReport sealed : public Report, 
    ISerializable
[<Sealed>]
[<SerializableAttribute>]
type ServerReport =  
    class
        inherit Report
        interface ISerializable
    end
public final class ServerReport extends Report implements ISerializable

O tipo ServerReport expõe os membros a seguir.

Construtores

  Nome Descrição
Método público ServerReport Initializes a new instance of the ServerReport class.

Superior

Propriedades

  Nome Descrição
Propriedade pública Cookies Gets a collection of Cookie objects. The ServerReport object uses the cookies in this collection when making server requests.
Propriedade pública DisplayName Gets or sets the display name of the report. (Herdado de Report.)
Propriedade pública Headers Gets a collection of strings that contain custom headers.
Propriedade pública HistoryId Gets or sets the unique identifier of the report history snapshot used for the server report.
Propriedade pública IsDrillthroughReport Indicates whether the report is a drillthrough report. (Herdado de Report.)
Propriedade pública IsReadyForRendering Gets a Boolean value that indicates whether a report definition and all parameters have been specified, and all data sources are ready for use. (Herdado de Report.)
Propriedade pública ReportPath Gets or sets the path to the report on the server.
Propriedade pública ReportServerCredentials Gets or sets the credentials to be used with the report server.
Propriedade pública ReportServerUrl Gets or sets the URL for the report server.
Propriedade pública Timeout Gets or sets the number of milliseconds to wait for server communications.

Superior

Métodos

  Nome Descrição
Método público Equals Determines whether the specified object is equal to the current object. (Herdado de Object.)
Método público GetDataSources() Retrieves information about the data sources used for a report.
Método público GetDataSources(Boolean%) Retrieves information about the data sources used for a report, including whether all required credentials have been supplied for the report data sources.
Método público GetDefaultPageSettings Gets the default page settings specified in the report definition. (Substitui Report.GetDefaultPageSettings().)
Método público GetDocumentMap Returns the representation of the document map for the local report. (Herdado de Report.)
Método público GetExecutionId Returns the current execution ID, or null (Nothing in Visual Basic) if no execution ID is available.
Método público GetHashCode Serves as the default hash function. (Herdado de Object.)
Método público GetParameters Returns report parameter properties for the report. (Substitui Report.GetParameters().)
Método público GetServerVersion Returns the version of the report server.
Método público GetTotalPages() Returns the total number of soft pages in the report. (Herdado de Report.)
Método público GetTotalPages(PageCountMode%) Returns the total number of soft pages in the report and a PageCountMode value that indicates the current page count mode. (Substitui Report.GetTotalPages(PageCountMode%).)
Método público GetType Gets the Type of the current instance. (Herdado de Object.)
Método público IsQueryExecutionAllowed Indicates whether the report can execute queries.
Método público ListRenderingExtensions Returns all available rendering extensions for the server report. (Substitui Report.ListRenderingExtensions().)
Método público LoadReportDefinition(Stream) Loads a report definition for processing using a Stream. (Herdado de Report.)
Método público LoadReportDefinition(TextReader) Loads the report definition on the report server for remote processing using a TextReader. (Substitui Report.LoadReportDefinition(TextReader).)
Método público Refresh Causes the report to be rendered with new data. (Substitui Report.Refresh().)
Método público Render(String) Processes the report and renders it in the specified format. (Herdado de Report.)
Método público Render(String, String) Processes the report and renders it in the specified format. (Herdado de Report.)
Método público Render(String, String, NameValueCollection, String%, String%) Renders the report with optional URL access parameters.
Método público Render(String, String, NameValueCollection, Stream, String%, String%) Renders the report with optional URL access parameters.
Método público Render(String, String, String%, String%, String%, array<String[]%, array<Warning[]%) Processes the report and renders it in the specified format. (Herdado de Report.)
Método público Render(String, String, PageCountMode, String%, String%, String%, array<String[]%, array<Warning[]%) Processes the report with the specified PageCountMode value and renders it in the specified format. (Substitui Report.Render(String, String, PageCountMode, String%, String%, String%, array<String[]%, array<Warning[]%).)
Método público RenderStream Returns a secondary stream associated with a processed report.
Método público SetDataSourceCredentials Sets the data source credentials for the report.
Método público SetExecutionId Initializes a server report using a specific report execution on the server.
Método público SetParameters(ReportParameter) Sets report parameter properties for the report. (Herdado de Report.)
Método público SetParameters(IEnumerable<ReportParameter>) Sets report parameter properties for the report. (Substitui Report.SetParameters(IEnumerable<ReportParameter>).)
Método público ToString Returns a string that represents the current object. (Herdado de Object.)

Superior

Implementações explícitas da interface

  Nome Descrição
Implementação explícita da interfaceMétodo particular ISerializable.GetObjectData

Superior

Comentários

The ServerReport object serves as a proxy for a report on a report server. It processes reports at the report server, rather than locally. It can open Report Definition Language (RDL) files that have been published to the server, and it can also load a report definition from a Stream or a TextReader to the server for remote processing.

The ServerReport object exposes additional functionality supported by the report server, including parameters and the ability to export reports to any format supported by the report server.

The ServerReport object requires a SQL Server 2008 version of Reporting Services or later.

Acesso thread-safe

Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.

Consulte também

Referência

Namespace Microsoft.Reporting.WebForms