Interface IExportsService
Interface for using the export service. Allows you to export a report and get the export settings window.
Namespace: FastReport.Web.Services
Assembly: FastReport.OpenSource.Web.dll
Syntax
public interface IExportsService
Remarks
The interface may change over time
Methods
ExportReport(WebReport, KeyValuePair<String, String>[], String, out String)
Exports the report in a specified format with specified parameters and returns an array of bytes - the exported report file
Declaration
byte[] ExportReport(WebReport webReport, KeyValuePair<string, string>[] exportParams, string exportFormat, out string filename)
Parameters
Type | Name | Description |
---|---|---|
WebReport | webReport | The FastReport component whose properties you want to get. Like TextObject, PictureObject etc. |
System.Collections.Generic.KeyValuePair<System.String, System.String>[] | exportParams | |
System.String | exportFormat | |
System.String | filename |
Returns
Type | Description |
---|---|
System.Byte[] | Returns an array of bytes - the exported report. Returns null if there is an error. |
GetExportSettings(WebReport, String)
Searches the settings window by format name and returns an HTML string with a modal settings container.
Declaration
string GetExportSettings(WebReport webReport, string format)
Parameters
Type | Name | Description |
---|---|---|
WebReport | webReport | Report, for which the export settings are using |
System.String | format | Export format. Like "pdf", "html", "image", etc. |
Returns
Type | Description |
---|---|
System.String | Returns an HTML string with the export settings container of the selected format. If the format is not found, it returns an empty string. |