Exemplo n.º 1
0
 public UIElementPrinter(BaseDoc baseDoc, PaperSize paperSize, bool pageFromHeight, string pageName)
 {
     _baseDoc        = baseDoc;
     _pageName       = pageName;
     _paperSize      = paperSize;
     _pageFromHeight = pageFromHeight;
 }
Exemplo n.º 2
0
 public DataTemplate(BaseDoc baseDoc)
 {
     _baseDoc       = baseDoc;
     _mRichTextBoxs = _baseDoc.ReportViewer.GetControls <MRichTextBox>();
     if (_mRichTextBoxs != null && _mRichTextBoxs.Count > 0)
     {
         foreach (MRichTextBox richBox in _mRichTextBoxs)
         {
             richBox.Enter += new EventHandler(richBox_Enter);
         }
     }
     _gridViews = _baseDoc.ReportViewer.GetControls <MedGridView>();
     if (_gridViews != null && _gridViews.Count > 0)
     {
         foreach (MedGridView grid in _gridViews)
         {
             grid.Enter += new EventHandler(grid_Enter);
         }
     }
 }
Exemplo n.º 3
0
 public UIElementPrinter(BaseDoc baseDoc, PaperSize paperSize, bool pageFromHeight, float printHeight, string pageName)
     : this(baseDoc, paperSize, pageFromHeight, pageName)
 {
     _pagePrintHeight = printHeight;
 }
Exemplo n.º 4
0
 public UIElementPrinter(BaseDoc baseDoc, PaperSize paperSize) : this(baseDoc, paperSize, false, null)
 {
 }