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 | |
---|---|---|
ServerReport | Initializes a new instance of the ServerReport class. |
Superior
Propriedades
Nome | Descrição | |
---|---|---|
Cookies | Gets a collection of Cookie objects. The ServerReport object uses the cookies in this collection when making server requests. | |
DisplayName | Gets or sets the display name of the report. (Herdado de Report.) | |
Headers | Gets a collection of strings that contain custom headers. | |
HistoryId | Gets or sets the unique identifier of the report history snapshot used for the server report. | |
IsDrillthroughReport | Indicates whether the report is a drillthrough report. (Herdado de Report.) | |
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.) | |
ReportPath | Gets or sets the path to the report on the server. | |
ReportServerCredentials | Gets or sets the credentials to be used with the report server. | |
ReportServerUrl | Gets or sets the URL for the report server. | |
Timeout | Gets or sets the number of milliseconds to wait for server communications. |
Superior
Métodos
Nome | Descrição | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Herdado de Object.) | |
GetDataSources() | Retrieves information about the data sources used for a report. | |
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. | |
GetDefaultPageSettings | Gets the default page settings specified in the report definition. (Substitui Report.GetDefaultPageSettings().) | |
GetDocumentMap | Returns the representation of the document map for the local report. (Herdado de Report.) | |
GetExecutionId | Returns the current execution ID, or null (Nothing in Visual Basic) if no execution ID is available. | |
GetHashCode | Serves as the default hash function. (Herdado de Object.) | |
GetParameters | Returns report parameter properties for the report. (Substitui Report.GetParameters().) | |
GetServerVersion | Returns the version of the report server. | |
GetTotalPages() | Returns the total number of soft pages in the report. (Herdado de Report.) | |
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%).) | |
GetType | Gets the Type of the current instance. (Herdado de Object.) | |
IsQueryExecutionAllowed | Indicates whether the report can execute queries. | |
ListRenderingExtensions | Returns all available rendering extensions for the server report. (Substitui Report.ListRenderingExtensions().) | |
LoadReportDefinition(Stream) | Loads a report definition for processing using a Stream. (Herdado de Report.) | |
LoadReportDefinition(TextReader) | Loads the report definition on the report server for remote processing using a TextReader. (Substitui Report.LoadReportDefinition(TextReader).) | |
Refresh | Causes the report to be rendered with new data. (Substitui Report.Refresh().) | |
Render(String) | Processes the report and renders it in the specified format. (Herdado de Report.) | |
Render(String, String) | Processes the report and renders it in the specified format. (Herdado de Report.) | |
Render(String, String, NameValueCollection, String%, String%) | Renders the report with optional URL access parameters. | |
Render(String, String, NameValueCollection, Stream, String%, String%) | Renders the report with optional URL access parameters. | |
Render(String, String, String%, String%, String%, array<String[]%, array<Warning[]%) | Processes the report and renders it in the specified format. (Herdado de Report.) | |
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[]%).) | |
RenderStream | Returns a secondary stream associated with a processed report. | |
SetDataSourceCredentials | Sets the data source credentials for the report. | |
SetExecutionId | Initializes a server report using a specific report execution on the server. | |
SetParameters(ReportParameter) | Sets report parameter properties for the report. (Herdado de Report.) | |
SetParameters(IEnumerable<ReportParameter>) | Sets report parameter properties for the report. (Substitui Report.SetParameters(IEnumerable<ReportParameter>).) | |
ToString | Returns a string that represents the current object. (Herdado de Object.) |
Superior
Implementações explícitas da interface
Nome | Descrição | |
---|---|---|
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.