使用可选的 URL 访问参数呈现报表。
命名空间: Microsoft.Reporting.WebForms
程序集: Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)
语法
声明
Public Sub Render ( _
format As String, _
deviceInfo As String, _
urlAccessParameters As NameValueCollection, _
reportStream As Stream, _
<OutAttribute> ByRef mimeType As String, _
<OutAttribute> ByRef fileNameExtension As String _
)
public void Render(
string format,
string deviceInfo,
NameValueCollection urlAccessParameters,
Stream reportStream,
out string mimeType,
out string fileNameExtension
)
public:
void Render(
String^ format,
String^ deviceInfo,
NameValueCollection^ urlAccessParameters,
Stream^ reportStream,
[OutAttribute] String^% mimeType,
[OutAttribute] String^% fileNameExtension
)
member Render :
format:string *
deviceInfo:string *
urlAccessParameters:NameValueCollection *
reportStream:Stream *
mimeType:string byref *
fileNameExtension:string byref -> unit
public function Render(
format : String,
deviceInfo : String,
urlAccessParameters : NameValueCollection,
reportStream : Stream,
mimeType : String,
fileNameExtension : String
)
参数
- format
类型:String
呈现报表所用的格式。此参数将映射到某个呈现扩展插件。可以使用报表服务器上任何可用的呈现扩展插件。
若要访问可用呈现扩展插件列表,请使用 ListRenderingExtensions 方法。
- deviceInfo
类型:String
一个 XML 字符串,包含 format 参数中所指定的呈现扩展插件所需的设备特定内容。有关特定输出格式的设备信息设置的更多信息,请参见《SQL Server 联机丛书》中有关设备信息设置的部分。
- urlAccessParameters
类型:NameValueCollection
要传递给报表服务器的 URL 访问参数。有关更多信息,请参见 SQL Server 联机丛书中有关“URL 访问”的文档。
此参数可以设置为 Null。
- reportStream
类型:Stream
要将呈现的报表写入其中的流。
- mimeType
类型:String%
[out] 呈现的报表的 MIME 类型。
- fileNameExtension
类型:String%
[out] 输出文件所使用的文件扩展名。