コード例 #1
0
        //---------------------------------------------------------------------------
        #region ** overrides

        // start printing the document
        protected override void OnBeginPrint(PrintEventArgs e)
        {
            // we haven't printed anything yet
            _firstChar   = 0;
            _currentPage = 0;

            // check whether we need a page count
            _pageCount = Header.IndexOf(PAGES) > -1 || Footer.IndexOf(PAGES) > -1
                ? -1
                : 0;

            // fire event as usual
            base.OnBeginPrint(e);
        }