public ReportViewerSecondaryView(ReportDesignerLoader designerLoader,IViewContent content):base(content)
		{
			if (designerLoader == null) {
				throw new ArgumentNullException("designerLoader");
			}
			if (content == null) {
				throw new ArgumentNullException("content");
			}
			this.designerLoader = designerLoader;
			this.control = new ICSharpCode.Reports.Core.ReportViewer.PreviewControl();
			this.control.Messages = new ReportViewerMessages();
			this.control.PreviewLayoutChanged += OnPreviewLayoutChanged;
			base.TabPageText = ResourceService.GetString("SharpReport.ReportViewer");
		}
Exemple #2
0
        public AbstractPreviewCommand(ReportModel model, ICSharpCode.Reports.Core.ReportViewer.PreviewControl reportViewer)
        {
            if (model == null)
            {
                throw new  ArgumentNullException("model");
            }
            if (reportViewer == null)
            {
                throw new ArgumentNullException("reportViewer");
            }

            this.Model        = model;
            this.ReportViewer = reportViewer;
        }
 public ReportViewerSecondaryView(ReportDesignerLoader designerLoader, IViewContent content) : base(content)
 {
     if (designerLoader == null)
     {
         throw new ArgumentNullException("designerLoader");
     }
     if (content == null)
     {
         throw new ArgumentNullException("content");
     }
     this.designerLoader                = designerLoader;
     this.control                       = new ICSharpCode.Reports.Core.ReportViewer.PreviewControl();
     this.control.Messages              = new ReportViewerMessages();
     this.control.PreviewLayoutChanged += OnPreviewLayoutChanged;
     base.TabPageText                   = ResourceService.GetString("SharpReport.ReportViewer");
 }
Exemple #4
0
 public PushModelToReportViewerCommand(ReportModel model, ICSharpCode.Reports.Core.ReportViewer.PreviewControl reportViewer) : base(model, reportViewer)
 {
 }