예제 #1
0
 override internal void FinalPass()
 {
     if (_Grouping != null)
     {
         _Grouping.FinalPass();
     }
     if (_Sorting != null)
     {
         _Sorting.FinalPass();
     }
     if (_Header != null)
     {
         _Header.FinalPass();
     }
     if (_Footer != null)
     {
         _Footer.FinalPass();
     }
     if (_Visibility != null)
     {
         _Visibility.FinalPass();
         if (_Visibility.ToggleItem != null)
         {
             _ToggleTextbox = (Textbox)(OwnerReport.LUReportItems[_Visibility.ToggleItem]);
             if (_ToggleTextbox != null)
             {
                 _ToggleTextbox.IsToggle = true;
             }
         }
     }
     return;
 }
예제 #2
0
        override internal void FinalPass()
        {
            base.FinalPass();
            float totalHeight = 0;

            if (_TableColumns != null)
            {
                _TableColumns.FinalPass();
            }
            if (_Header != null)
            {
                _Header.FinalPass();
                totalHeight += _Header.TableRows.DefnHeight();
            }
            if (_TableGroups != null)
            {
                _TableGroups.FinalPass();
                totalHeight += _TableGroups.DefnHeight();
            }
            if (_Details != null)
            {
                _Details.FinalPass();
                totalHeight += _Details.TableRows.DefnHeight();
            }
            if (_Footer != null)
            {
                _Footer.FinalPass();
                totalHeight += _Footer.TableRows.DefnHeight();
            }

            if (this.Height == null)
            {                   // Calculate a height based on the sum of the TableRows
                this.Height = new RSize(this.OwnerReport,
                                        string.Format(NumberFormatInfo.InvariantInfo, "{0:0.00}pt", totalHeight));
            }
            return;
        }