[]
Generates report in specific format.
startPageIndex and pageCount specify
range of pages, set pageCount to 0 to request all pages of the report.
public byte[] GetContent(int startPageIndex, int pageCount, ReportSession.ReportFormat format, PageLayout pageLayout, int? dpiX, int? dpiY, CancellationToken cancellationToken)
Public Function GetContent(startPageIndex As Integer, pageCount As Integer, format As ReportSession.ReportFormat, pageLayout As PageLayout, dpiX As Integer?, dpiY As Integer?, cancellationToken As CancellationToken) As Byte()
| Type | Name | Description |
|---|---|---|
| int | startPageIndex | The first page of the report to render. |
| int | pageCount | Count of pages to load, set this parameter to 0 to request all pages of the report, |
| ReportSession.ReportFormat | format | ReportSession.ReportFormat object specifies the report format. |
| PageLayout | pageLayout | PageLayout object specifies the page settings, this parameter used only for PDF and IMAGE formats. |
| int? | dpiX | Specifies print horizontal dpi, used only for EMF format, see PrintDpiX in SSRS help. |
| int? | dpiY | Specifies print vertical dpi, used only for EMF format, see PrintDpiY in SSRS help. |
| CancellationToken | cancellationToken | CancellationToken that can be used to cancel an action. |
| Type | Description |
|---|---|
| byte[] | Array of bytes contains generated content, null if action was cancelled. |
Gets report content in specific format.
public byte[] GetContent(string format, string deviceInfo, CancellationToken cancellationToken)
Public Function GetContent(format As String, deviceInfo As String, cancellationToken As CancellationToken) As Byte()
| Type | Name | Description |
|---|---|---|
| string | format | Strings specifies report format "PDF", "IMAGE" etc. |
| string | deviceInfo | DeviceInfo string specifies additional parameters. |
| CancellationToken | cancellationToken | CancellationToken that can be used to cancel an action. |
| Type | Description |
|---|---|
| byte[] | Array of bytes contains generated content. |