Exemplo n.º 1
0
            public void TracePageBreakIgnored(object item, IgnorePageBreakReason ignorePageBreakReason)
            {
                if (this.DiagnosticsEnabled)
                {
                    string key  = default(string);
                    string text = default(string);
                    this.GetItemIdAndName(item, out key, out text);
                    if (this.m_tracedPageBreakIgnored != null && this.m_tracedPageBreakIgnored.ContainsKey(key))
                    {
                        return;
                    }
                    string text2 = "PR-DIAG [Page {0}] Page break on '{1}' ignored";
                    switch (ignorePageBreakReason)
                    {
                    case IgnorePageBreakReason.InsideTablixCell:
                        text2 += " - inside TablixCell";
                        break;

                    case IgnorePageBreakReason.ToggleableItem:
                        text2 += " - part of toggleable region";
                        break;

                    case IgnorePageBreakReason.InsideHeaderFooter:
                        text2 += " - inside header or footer";
                        break;
                    }
                    RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Info, text2, this.m_pageNumber, text);
                    if (this.m_tracedPageBreakIgnored == null)
                    {
                        this.m_tracedPageBreakIgnored = new Hashtable();
                    }
                    this.m_tracedPageBreakIgnored.Add(key, null);
                }
            }
Exemplo n.º 2
0
            public void TracePageBreakIgnored(object item, IgnorePageBreakReason ignorePageBreakReason)
            {
                if (!DiagnosticsEnabled)
                {
                    return;
                }
                GetItemIdAndName(item, out string id, out string name);
                if (m_tracedPageBreakIgnored == null || !m_tracedPageBreakIgnored.ContainsKey(id))
                {
                    string text = "PR-DIAG [Page {0}] Page break on '{1}' ignored";
                    switch (ignorePageBreakReason)
                    {
                    case IgnorePageBreakReason.InsideTablixCell:
                        text += " - inside TablixCell";
                        break;

                    case IgnorePageBreakReason.ToggleableItem:
                        text += " - part of toggleable region";
                        break;

                    case IgnorePageBreakReason.InsideHeaderFooter:
                        text += " - inside header or footer";
                        break;
                    }
                    RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Info, text, m_pageNumber, name);
                    if (m_tracedPageBreakIgnored == null)
                    {
                        m_tracedPageBreakIgnored = new Hashtable();
                    }
                    m_tracedPageBreakIgnored.Add(id, null);
                }
            }
Exemplo n.º 3
0
 public void TracePageCreated()
 {
     if (!DiagnosticsEnabled || m_pageNumber == 0)
     {
         return;
     }
     foreach (PageBreakProperties registeredPageBreakProperty in m_registeredPageBreakProperties)
     {
         if (registeredPageBreakProperty != m_pageBreakProperties)
         {
             string itemName = GetItemName(registeredPageBreakProperty.Source);
             RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Info, "PR-DIAG [Page {0}] Page break on '{1}' ignored – peer item precedence", PageNumber, itemName);
         }
     }
     if (m_pageBreakProperties != null)
     {
         if (m_paginatingHorizontally)
         {
             TracePageCreated(PageCreationType.Horizontal);
         }
         else
         {
             TracePageCreated(PageCreationType.Logical, m_pageBreakProperties.ResetPageNumber);
         }
     }
     else if (m_paginatingHorizontally)
     {
         TracePageCreated(PageCreationType.Horizontal);
     }
     else
     {
         TracePageCreated(PageCreationType.Vertical);
     }
 }
Exemplo n.º 4
0
 private static void TracePageBreakIgnoredAtBottom(int pageNumber, PageBreakInfo pageBreak)
 {
     if (pageBreak != null && !pageBreak.Disabled)
     {
         RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Verbose, "PR-DIAG [Page {0}] Page break on '{1}' ignored – bottom of page", pageNumber, pageBreak.ReportItemName);
     }
 }
Exemplo n.º 5
0
 private void TracePageNameChanged()
 {
     if (m_common.PageName != null && m_common.PageTotalInfo != null && string.CompareOrdinal(m_common.PageTotalInfo.GetPageName(PageNumber - 1), m_common.PageName) != 0)
     {
         RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Verbose, "PR-DIAG [Page {0}] Page name changed", PageNumber);
     }
 }
Exemplo n.º 6
0
 private void TracePageBreakIgnoredBecauseOfPeerItem(PageBreakInfo ignoredPageBreak)
 {
     if (ignoredPageBreak != null && !ignoredPageBreak.Disabled)
     {
         RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Verbose, "PR-DIAG [Page {0}] Page break on '{1}' ignored – peer item precedence", PageNumber, ignoredPageBreak.ReportItemName);
     }
 }
Exemplo n.º 7
0
 public void TracePageBreakIgnoredAtBottomOfPage(object item)
 {
     if (DiagnosticsEnabled)
     {
         string itemName = GetItemName(item);
         RenderingDiagnostics.Trace(RenderingArea.PageCreation, TraceLevel.Info, "PR-DIAG [Page {0}] Page break on '{1}' ignored – bottom of page", m_pageNumber, itemName);
     }
 }
Exemplo n.º 8
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.º 9
0
 public void TracePageBreakIgnoredDisabled(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 – Disable is True", this.m_pageNumber, itemName);
     }
 }
Exemplo n.º 10
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.º 11
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.º 12
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());
 }