ServerReport.Render 方法 (String, String, NameValueCollection, Stream, String%, String%)
以選擇性的 URL 存取參數來轉譯報表。
命名空間: Microsoft.Reporting.WinForms
組件: Microsoft.ReportViewer.WinForms (在 Microsoft.ReportViewer.WinForms.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
包含 format 參數中指定之轉譯延伸模組所需之裝置特定內容的 XML 字串。如需特定輸出格式之裝置資訊設定的詳細資訊,請參閱《SQL Server 線上叢書》中的<裝置資訊設定>。
- urlAccessParameters
類型:NameValueCollection
傳遞給報表伺服器的 URL 存取參數。如需詳細資訊,請參閱《SQL Server 線上叢書》中的<URL 存取>文件集。
這個參數可設為 NULL。
- reportStream
類型:Stream
轉譯的報表將寫入其中的資料流。
- mimeType
類型:String%
[out] 轉譯報表的 MIME 類型。
- fileNameExtension
類型:String%
[out] 輸出檔所用的副檔名。