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);
        }
Beispiel #2
0
        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);
     }
 }
Beispiel #4
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             if (this.previewLayout != null)
             {
                 this.previewLayout.Dispose();
                 this.previewLayout = null;
             }
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }