使用英语阅读

通过


Report.Render 方法 (String)

处理报表并以指定的格式呈现该报表。

命名空间:  Microsoft.Reporting.WebForms
程序集:  Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)

语法

声明
Public Function Render ( _
    format As String _
) As Byte()
用法
Dim instance As Report
Dim format As String
Dim returnValue As Byte()

returnValue = instance.Render(format)

参数

  • format
    类型:System.String
    呈现报表所用的格式。此参数将映射到某个呈现扩展插件。
    在本地处理模式中,支持的扩展插件为 Excel、PDF、Word 和 Image。在远程处理模式中,支持的扩展插件取决于报表服务器支持的扩展插件。
    根据处理模式(请参见 ProcessingMode),可以使用 ServerReportLocalReport 中的 ListRenderingExtensions 方法来访问可用呈现扩展插件列表。

返回值

类型:array<System.Byte[]
具有指定格式的报表的 byte 数组。

请参阅

参考

Report 类

Render 重载

Microsoft.Reporting.WebForms 命名空间