public GeradorReportViewer( Formato reportFormat, string reportPath, IEnumerable <KeyValuePair <string, object> > reportParameters, ModoProcessamento mode = ModoProcessamento.Remote, IDictionary <string, DataTable> localReportDataSources = null, IDictionary <string, IEnumerable> localReportEnumerable = null, IDictionary <string, IDataSource> localReportUiDataSource = null, string filename = null, string eventsHandlerType = null, Stream embeddedResourceStream = null, string embeddedResourcePath = null) : this(reportFormat, reportPath, null, null, null, reportParameters.ToList(), mode, localReportDataSources, localReportEnumerable, localReportUiDataSource, filename, eventsHandlerType, embeddedResourceStream, embeddedResourcePath) { }
public GeradorReportViewer( Formato reportFormat, string reportPath, string reportServerUrl, string username, string password, IEnumerable <KeyValuePair <string, object> > reportParameters, ModoProcessamento mode = ModoProcessamento.Remote, IDictionary <string, DataTable> localReportDataSources = null, IDictionary <string, IEnumerable> localReportEnumerable = null, IDictionary <string, IDataSource> localReportUiDataSource = null, string filename = null, string eventsHandlerType = null, Stream embeddedResourceStream = null, string embededResourcePath = null) { _viewerParameters = new ReportViewParamenters { IsGeradorReportViewerExecution = true }; _reportFormat = reportFormat; Filename = filename; if (mode == ModoProcessamento.Local) { _viewerParameters.ProcessingMode = ProcessingMode.Local; } else if (mode == ModoProcessamento.Remote) { _viewerParameters.ProcessingMode = ProcessingMode.Remote; } if (mode == ModoProcessamento.Local && localReportDataSources != null) { _viewerParameters.LocalReportDataSources = localReportDataSources; } else if (mode == ModoProcessamento.Local && localReportEnumerable != null) { _viewerParameters.LocalReportDatasourceEnumerable = localReportEnumerable; } else if (mode == ModoProcessamento.Local && localReportUiDataSource != null) { _viewerParameters.LocalReportIDataSource = localReportUiDataSource; } _viewerParameters.EmbeddedResourceStream = embeddedResourceStream; _viewerParameters.LocalPath = reportPath; _viewerParameters.EmbeddedResourcePath = embededResourcePath; if (!string.IsNullOrEmpty(eventsHandlerType)) { _viewerParameters.EventsHandlerType = eventsHandlerType; } ParseParameters(reportParameters); }
public GeradorReportViewer( Formato reportFormat, string reportPath, ModoProcessamento mode = ModoProcessamento.Remote, IDictionary <string, DataTable> localReportDataSources = null, IDictionary <string, IEnumerable> localReportEnumerable = null, IDictionary <string, IDataSource> localReportUiDataSource = null, string filename = null, string eventsHandlerType = null) : this(reportFormat, reportPath, null, null, null, null, mode, localReportDataSources, localReportEnumerable, localReportUiDataSource, filename, eventsHandlerType) { }