public Rdl.TablixType CreateTable() { Tablix table = new Tablix(); table.Style = new Style { Border = new Border { Style = "Solid" }.Create() }.Create(); table.TablixBody = new TablixBody().Create(); TablixBody tableBody = new TablixBody(); tableBody.TablixColumns = new TablixColumnsType[] { CreateTablixColumns() }; TablixRows rows = new TablixRows(); List<TablixRowType> rowList = new List<TablixRowType>(); TablixMembersType m_rowHierarchy = new TablixMembersType(); List<TablixMemberType> members = new List<TablixMemberType>(); if (ShowHeader) { rowList.Add( CreateHeaderTableRow()); TablixMember m = new TablixMember(); m.KeepWithGroup = TablixMemberTypeKeepWithGroup.After; members.Add(m.Create()); } if (ShowDetails) { rowList.Add(CreateTableRow()); //����Ϊ��ϸ TablixMember m = new TablixMember(); GroupType g = new GroupType(); g.Name = "��ϸ��Ϣ"; m.Group = g; TablixMembersType childMembers = new TablixMembersType(); TablixMember childMember = new TablixMember(); childMembers.TablixMember = new TablixMemberType[] { childMember.Create() }; m.TablixMembers=childMembers; members.Add(m.Create()); } rows.TablixRow = rowList.ToArray(); //<TablixRowHierarchy> m_rowHierarchy.TablixMember = members.ToArray(); TablixHierarchy rowHierarchy = new TablixHierarchy(); rowHierarchy.TablixMembers = new TablixMembersType[] { m_rowHierarchy }; table.TablixRowHierarchy = rowHierarchy.Create(); //if (Parent.Grouping!=null) //{ // table.TableGroups = CreateTableGroups(); //} tableBody.TablixRows = new TablixRowsType[]{ rows.Create()}; table.TablixBody = tableBody.Create(); //<TablixColumnHierarchy> table.TablixColumnHierarchy = CreateTablixColumnHierarchy(); table.Top = "0.2mm"; table.Left = Parent.LeftMargin.ToString() + "mm"; return table.Create(TableName); }
private static TablixBody CreateTablixBody(string dataSetName) { var rectangle = new Rectangle(); //rectangle.AddReportItem(ElementCell.Create(dataSetName)); var tablixColumns = new TablixColumns(new TablixColumn(new Width(new Inch(1.05)))); var tablixCells = new TablixCells(new TablixCell(new CellContents(rectangle))); var tablixRows = new TablixRows(new TablixRow(new Inch(0.85), tablixCells)); return(new TablixBody(tablixColumns, tablixRows)); }
private static TablixBody CreateTablixBody() { var tablixRows = new TablixRows(); tablixRows.Add(CreateFirstTablixRow()); tablixRows.Add(CreateSecondTablixRow()); tablixRows.Add(CreateThirdTablixRow()); tablixRows.Add(CreateFourthTablixRow()); var tablixColumns = new TablixColumns(new TablixColumn(new Width(new Inch(1)))); return(new TablixBody(tablixColumns, tablixRows)); }
public TablixHeader(TablixRows tablixRows, Boolean linked) : base(tablixRows, linked) { }
public TablixHeader(TablixRows tablixRows) : base(tablixRows) { }
public TablixFooter(TablixRows tablixRows, Boolean linked) : base(tablixRows, linked) { }
public TablixFooter(TablixRows tablixRows) : base(tablixRows) { }
protected TablixContainer(TablixContainer tablixContainer) { TablixRows = new TablixRows(tablixContainer.TablixRows); Linked = tablixContainer.Linked; }
protected TablixContainer(TablixRows tablixRows, Boolean linked) { TablixRows = tablixRows; Linked = linked; }
protected TablixContainer(TablixRows tablixRows) : this(tablixRows, false) { }