private static void DumpTablix(Microsoft.ReportingServices.ReportIntermediateFormat.Tablix tablix, StreamWriter stream)
        {
            stream.Write("Name: ");
            stream.WriteLine(tablix.Name);
            stream.WriteLine("<BR>");
            stream.Write("Width: ");
            stream.WriteLine(tablix.Width);
            stream.WriteLine("<BR>");
            stream.Write("Height: ");
            stream.WriteLine(tablix.Height);
            stream.WriteLine("<BR>");
            if (tablix.InScopeTextBoxes != null)
            {
                stream.WriteLine("<font color=\"darkgreen\"><b>TextBoxesInScope:</b></font> <BR>");
                foreach (Microsoft.ReportingServices.ReportIntermediateFormat.TextBox inScopeTextBox in tablix.InScopeTextBoxes)
                {
                    stream.WriteLine("<font color=\"darkgreen\"><b>" + inScopeTextBox.Name + "</b></font> <BR>");
                }
            }
            stream.Write("<div style='border:solid darkblue 1px;width:");
            stream.Write(tablix.Width);
            stream.Write(";height:");
            stream.Write(tablix.Height);
            stream.WriteLine(";'>");
            stream.WriteLine("<Table cellpadding='0' cellspacing='0' rules='all' border='1'>");
            if (tablix.Corner != null)
            {
                stream.Write("<tr><td colspan='");
                stream.Write(tablix.RowHeaderColumnCount.ToString(CultureInfo.InvariantCulture));
                stream.Write("' rowspan='");
                stream.Write(tablix.ColumnHeaderRowCount.ToString(CultureInfo.InvariantCulture));
                stream.Write("'>Corner</td>");
            }
            Queue <TablixMember> queue = new Queue <TablixMember>();

            if (tablix.TablixColumnMembers != null)
            {
                foreach (TablixMember tablixColumnMember in tablix.TablixColumnMembers)
                {
                    queue.Enqueue(tablixColumnMember);
                }
                DumpTablixMembers(tablix.TablixColumns, queue, stream, 0, 0);
            }
            Global.Tracer.Assert(queue.Count == 0, "(members.Count == 0)");
            int index = 0;

            if (tablix.TablixRowMembers != null)
            {
                foreach (TablixMember tablixRowMember in tablix.TablixRowMembers)
                {
                    DumpTablixMembers(tablix.TablixRows, tablixRowMember, stream, -1, ref index);
                }
            }
            stream.WriteLine("</table>");
            stream.WriteLine("</div>");
        }
Пример #2
0
 internal Tablix(IDefinitionPath parentDefinitionPath, int indexIntoParentCollectionDef, Microsoft.ReportingServices.ReportIntermediateFormat.Tablix reportItemDef, RenderingContext renderingContext)
     : base(parentDefinitionPath, indexIntoParentCollectionDef, reportItemDef, renderingContext)
 {
 }
 internal RuntimeTablixObj(IReference <IScope> outerScope, Microsoft.ReportingServices.ReportIntermediateFormat.Tablix tablixDef, ref DataActions dataAction, OnDemandProcessingContext odpContext, bool onePassProcess)
     : base(outerScope, tablixDef, ref dataAction, odpContext, onePassProcess, Microsoft.ReportingServices.ReportProcessing.ObjectType.Tablix)
 {
 }