Class WriterBase
Exports the Reports in different format.
Inheritance
Inherited Members
Namespace: Syncfusion.ReportWriter
Assembly: Syncfusion.ReportWriter.Base.dll
Syntax
public abstract class WriterBase
Constructors
WriterBase()
Declaration
protected WriterBase()
Properties
Assemblies
Gets the assemblies used in the custom code or code modules.
Declaration
public List<Assembly> Assemblies { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.Reflection.Assembly> | A collection that contains the assemblies that are used in the custom code or code modules. |
CsvOptions
Gets or Sets the csv writer options.
Declaration
public CsvOptions CsvOptions { get; set; }
Property Value
Type | Description |
---|---|
CsvOptions |
Culture
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo |
DataSources
Gets or sets the data sources.
Declaration
public ReportDataSourceCollection DataSources { get; set; }
Property Value
Type | Description |
---|---|
ReportDataSourceCollection |
DisablePageSplitting
DisablePageSplitting is to enable or disable the textbox reportitem page splitting to reduce the memory consumption.
Declaration
public bool DisablePageSplitting { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
EnableVirtualEvaluation
Gets or sets a value for EnableVirtualEvaluation.
Declaration
public bool EnableVirtualEvaluation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
ExcelOptions
Gets or Sets the excel writer options.
Declaration
public ExcelOptions ExcelOptions { get; set; }
Property Value
Type | Description |
---|---|
ExcelOptions |
ExportLayout
Gets or sets a value for Whether print or default mode.
Declaration
public ExportLayout ExportLayout { get; set; }
Property Value
Type | Description |
---|---|
ExportLayout |
HTMLOptions
Gets or Sets the HTML writer options.
Declaration
public HTMLOptions HTMLOptions { get; set; }
Property Value
Type | Description |
---|---|
HTMLOptions |
PageSettings
Gets or sets PageSettings of Reportviewer.
Declaration
public PageSettings PageSettings { get; set; }
Property Value
Type | Description |
---|---|
PageSettings |
PDFOptions
Gets or Sets the PDF writer options.
Declaration
public PDFOptions PDFOptions { get; set; }
Property Value
Type | Description |
---|---|
PDFOptions |
PPTOptions
Gets or Sets the PPT writer options.
Declaration
public PPTOptions PPTOptions { get; set; }
Property Value
Type | Description |
---|---|
PPTOptions |
ReportingServer
Gets or sets ReportingServer of Reportviewer.
Declaration
public ReportingServer ReportingServer { get; set; }
Property Value
Type | Description |
---|---|
ReportingServer |
ReportLanguage
Declaration
public string ReportLanguage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ReportPath
Gets or sets the report path (file name of the report with its full path).
Declaration
public string ReportPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ReportProcessingMode
Gets or sets a value for Whether RDLC support or not.
Declaration
public ProcessingMode ReportProcessingMode { get; set; }
Property Value
Type | Description |
---|---|
ProcessingMode |
|
ReportServerCredential
Gets or sets the report server credential.
Declaration
public ICredentials ReportServerCredential { get; set; }
Property Value
Type | Description |
---|---|
System.Net.ICredentials |
ReportServerFormsCredential
Gets or sets credentials for ReportServer.
Declaration
public ReportServerFormsCredential ReportServerFormsCredential { get; set; }
Property Value
Type | Description |
---|---|
ReportServerFormsCredential | UserName and Password |
ReportServerUrl
Gets or sets the report server URL.
Declaration
public string ReportServerUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UserProfile
Declaration
public UserProfile UserProfile { get; set; }
Property Value
Type | Description |
---|---|
UserProfile |
WordOptions
Gets or Sets the word writer options.
Declaration
public WordOptions WordOptions { get; set; }
Property Value
Type | Description |
---|---|
WordOptions |
Methods
GetDataSetNames()
Returns the data set names
Declaration
public IList<string> GetDataSetNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IList<System.String> |
GetDataSources()
Gets the Datasource information of the report
Declaration
public ReportDataSourceInfoCollection GetDataSources()
Returns
Type | Description |
---|---|
ReportDataSourceInfoCollection | Report Datasources |
GetParameters()
Get the parameters
Declaration
public ReportParameterInfoCollection GetParameters()
Returns
Type | Description |
---|---|
ReportParameterInfoCollection |
GetParametersWithValues()
Get the report parameters with processed data values that are used in the current report.
Declaration
public ReportParameterInfoCollection GetParametersWithValues()
Returns
Type | Description |
---|---|
ReportParameterInfoCollection | The Report Parameter with Values |
LoadReport(Stream)
Loads the report
Declaration
public void LoadReport(Stream fileStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | fileStream | The stream which contains the rdl contents |
LoadSubreport(String, Stream)
Loads the sub report
Declaration
public void LoadSubreport(string reportName, Stream report)
Parameters
Type | Name | Description |
---|---|---|
System.String | reportName | Name of the report |
System.IO.Stream | report | The stream which contains the rdl contents |
LoadSubreport(String, TextReader)
Loads the sub report
Declaration
public void LoadSubreport(string reportName, TextReader report)
Parameters
Type | Name | Description |
---|---|---|
System.String | reportName | Name of the report |
System.IO.TextReader | report | The text reader which contains the rdl contents |
LoadSubreport(String, String)
Loads the sub report
Declaration
public void LoadSubreport(string reportName, string reportPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | reportName | Name of the report |
System.String | reportPath | Path to the report file |
SetDataSourceCredentials(DataSourceCredentials[])
Sets Datasource credentials
Declaration
public void SetDataSourceCredentials(DataSourceCredentials[] dataSourceCredentials)
Parameters
Type | Name | Description |
---|---|---|
DataSourceCredentials[] | dataSourceCredentials | Array of Credential Informations |
SetDataSourceCredentials(IEnumerable<DataSourceCredentials>)
Sets Datasource credentials
Declaration
public void SetDataSourceCredentials(IEnumerable<DataSourceCredentials> dataSourceCredentials)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<DataSourceCredentials> | dataSourceCredentials | collection of Credential Informations |
SetParameters(IEnumerable<ReportParameter>)
Set the parameter for the report
Declaration
public void SetParameters(IEnumerable<ReportParameter> reportParameters)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<ReportParameter> | reportParameters |
Events
ReportErrorOccurred
Declaration
public event ReportErrorOccurredEventHandler ReportErrorOccurred
Event Type
Type | Description |
---|---|
ReportErrorOccurredEventHandler |