private const int MaxHeaderFooterLines = 5; //maximum number of lines in header/footer public WorkflowPrintDocument(WorkflowView workflowView)//, IServiceProvider serviceProvider) { //this.serviceProvider = serviceProvider; this.pageSetupData = new PageSetupData(); this.workflowView = workflowView; this.previewLayout = new PrintPreviewLayout(this.workflowView, this); }
private const int MaxHeaderFooterLines = 5; //maximum number of lines in header/footer public WorkflowPrintDocument(WorkflowView workflowView) //, IServiceProvider serviceProvider) { //this.serviceProvider = serviceProvider; this.pageSetupData = new PageSetupData(); this.workflowView = workflowView; this.previewLayout = new PrintPreviewLayout(this.workflowView, this); }
protected override void Dispose(bool disposing) { try { if (disposing) { if (this.previewLayout != null) { this.previewLayout.Dispose(); this.previewLayout = null; } } } finally { base.Dispose(disposing); } }