Exemplo n.º 1
0
 public void CheckPageNameChanged()
 {
     if (DiagnosticsEnabled && m_pageName != m_previousPageName)
     {
         RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Info, "PR-DIAG [Page {0}] Page name changed", m_pageNumber);
         m_previousPageName = m_pageName;
     }
 }
Exemplo n.º 2
0
 public void TracePageBreakIgnoredAtBottomOfPage(object item)
 {
     if (this.DiagnosticsEnabled)
     {
         string itemName = this.GetItemName(item);
         RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Info, "PR-DIAG [Page {0}] Page break on '{1}' ignored – bottom of page", this.m_pageNumber, itemName);
     }
 }
Exemplo n.º 3
0
            private void TracePageCreated(PageCreationType pageCreationType, bool resetPageNumber)
            {
                string text = "PR-DIAG [Page {0}] Page created by {1} page break";

                if (resetPageNumber)
                {
                    text += ". Page number reset";
                }
                RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Info, text, m_pageNumber + 1, pageCreationType.ToString());
            }
Exemplo n.º 4
0
 private static void TraceLogicalPageBreak(int pageNumber, PageBreakInfo pageBreak)
 {
     if (pageBreak != null && !pageBreak.Disabled)
     {
         string text = "PR-DIAG [Page {0}] Page created by {1} page break";
         if (pageBreak.ResetPageNumber)
         {
             text += ". Page number reset";
         }
         RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Verbose, text, pageNumber, PageCreationType.Logical.ToString());
     }
 }
Exemplo n.º 5
0
 private static void TraceVerticalPageBreak(int pageNumber)
 {
     RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Verbose, "PR-DIAG [Page {0}] Page created by {1} page break", pageNumber, PageCreationType.Vertical.ToString());
 }