以選擇性的 URL 存取參數來轉譯報表。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.dll 中)
語法
'宣告
Public Function Render ( _
format As String, _
deviceInfo As String, _
urlAccessParameters As NameValueCollection, _
<OutAttribute> ByRef mimeType As String, _
<OutAttribute> ByRef fileNameExtension As String _
) As Stream
'用途
Dim instance As ServerReport
Dim format As String
Dim deviceInfo As String
Dim urlAccessParameters As NameValueCollection
Dim mimeType As String
Dim fileNameExtension As String
Dim returnValue As Stream
returnValue = instance.Render(format, _
deviceInfo, urlAccessParameters, _
mimeType, fileNameExtension)
public Stream Render(
string format,
string deviceInfo,
NameValueCollection urlAccessParameters,
out string mimeType,
out string fileNameExtension
)
public:
Stream^ Render(
String^ format,
String^ deviceInfo,
NameValueCollection^ urlAccessParameters,
[OutAttribute] String^% mimeType,
[OutAttribute] String^% fileNameExtension
)
member Render :
format:string *
deviceInfo:string *
urlAccessParameters:NameValueCollection *
mimeType:string byref *
fileNameExtension:string byref -> Stream
public function Render(
format : String,
deviceInfo : String,
urlAccessParameters : NameValueCollection,
mimeType : String,
fileNameExtension : String
) : Stream
參數
- format
型別:System.String
用來轉譯報表的格式。這個引數對應到轉譯延伸模組。您可以使用報表伺服器上任何可用的轉譯延伸模組。
若要存取可用轉譯延伸模組的清單,請使用 ListRenderingExtensions 方法。
- deviceInfo
型別:System.String
包含 format 參數中指定之轉譯延伸模組所需之裝置特定內容的 XML 字串。如需特定輸出格式之裝置資訊設定的詳細資訊,請參閱《SQL Server 線上叢書》中的Device Information Settings。
- urlAccessParameters
型別:System.Collections.Specialized.NameValueCollection
傳遞給報表伺服器的 URL 存取參數。如需詳細資訊,請參閱《SQL Server 線上叢書》中的<URL 存取>文件集。
這個參數可設為 NULL。
- mimeType
型別:System.String%
[out] 轉譯報表的 MIME 類型。
- fileNameExtension
型別:System.String%
[out] 輸出檔所用的副檔名。
傳回值
型別:System.IO.Stream
包含轉譯之報表的 Stream。