public Report(AspNetCore.ReportingServices.OnDemandReportRendering.Report report, PageContext pageContext, PaginationSettings aPagination) { this.m_report = report; this.m_pageContext = pageContext; this.m_pageSettings = aPagination; }
protected override void DetermineHorizontalSize(PageContext pageContext, double leftInParentSystem, double rightInParentSystem, List <PageItem> ancestors, bool anyAncestorHasKT, bool hasUnpinnedAncestors) { base.m_itemPageSizes.AdjustWidthTo(0.0); }
public override void WriteStartItemToStream(RPLWriter rplWriter, PageContext pageContext) { }
public PageContext(PageContext pageContext) { this.m_common = pageContext.Common; }
protected override void DetermineVerticalSize(PageContext pageContext, double topInParentSystem, double bottomInParentSystem, List <PageItem> ancestors, ref bool anyAncestorHasKT, bool hasUnpinnedAncestors) { base.m_itemPageSizes.AdjustHeightTo(0.0); }
private static void CollectDetailCellContents(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablix, int colMemberIndexCell, int rowMemberIndexCell, PageContext context, bool useForPageHFEval, Dictionary <string, List <object> > textBoxes) { if (rowMemberIndexCell >= 0) { TablixRowCollection rowCollection = tablix.Body.RowCollection; TablixCell tablixCell = ((ReportElementCollectionBase <TablixCell>)((ReportElementCollectionBase <TablixRow>)rowCollection)[rowMemberIndexCell])[colMemberIndexCell]; if (tablixCell != null && tablixCell.CellContents != null) { HeaderFooterEval.CollectTextBoxes(tablixCell.CellContents.ReportItem, context, useForPageHFEval, textBoxes); } } }
private static void CollectTextBoxes(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablix, PageContext pageContext, bool useForPageHFEval, Dictionary <string, List <object> > textBoxes) { if (tablix != null && useForPageHFEval && HeaderFooterEval.ShouldBeCollected(tablix)) { TablixInstance tablixInstance = (TablixInstance)tablix.Instance; HeaderFooterEval.CollectTablixMembersContents(tablix, null, -1, TablixState.ColMembers, tablixInstance.NoRows, pageContext, true, textBoxes); HeaderFooterEval.CollectTablixMembersContents(tablix, null, 0, TablixState.RowMembers, tablixInstance.NoRows, pageContext, true, textBoxes); } }
public static void CreatePaddingsStyle(PageContext pageContext, ReportItem source, out double padVertical, out double padHorizontal, out double padTop) { padVertical = 0.0; padHorizontal = 0.0; padTop = 0.0; PaddingsStyle paddingsStyle = null; bool flag = true; double num = 0.0; ReportSize styleValue = PaddingsStyle.GetStyleValue(StyleAttributeNames.PaddingTop, ref flag, source); if (styleValue != null) { num = styleValue.ToMillimeters(); if (flag) { if (paddingsStyle == null) { paddingsStyle = new PaddingsStyle(); } paddingsStyle.PadVertical += num; paddingsStyle.PadTop = num; paddingsStyle.State |= PaddingState.Top; } padTop = num; padVertical += num; } flag = true; styleValue = PaddingsStyle.GetStyleValue(StyleAttributeNames.PaddingBottom, ref flag, source); if (styleValue != null) { num = styleValue.ToMillimeters(); if (flag) { if (paddingsStyle == null) { paddingsStyle = new PaddingsStyle(); } paddingsStyle.PadVertical += num; paddingsStyle.State |= PaddingState.Bottom; } padVertical += num; } flag = true; styleValue = PaddingsStyle.GetStyleValue(StyleAttributeNames.PaddingLeft, ref flag, source); if (styleValue != null) { num = styleValue.ToMillimeters(); if (flag) { if (paddingsStyle == null) { paddingsStyle = new PaddingsStyle(); } paddingsStyle.PadHorizontal += num; paddingsStyle.State |= PaddingState.Left; } padHorizontal += num; } flag = true; styleValue = PaddingsStyle.GetStyleValue(StyleAttributeNames.PaddingRight, ref flag, source); if (styleValue != null) { num = styleValue.ToMillimeters(); if (flag) { if (paddingsStyle == null) { paddingsStyle = new PaddingsStyle(); } paddingsStyle.PadHorizontal += num; paddingsStyle.State |= PaddingState.Right; } padHorizontal += num; } if (paddingsStyle != null) { if (pageContext.ItemPaddingsStyle == null) { pageContext.ItemPaddingsStyle = new Hashtable(); } pageContext.ItemPaddingsStyle.Add(source.ID, paddingsStyle); } }
private static int CollectTablixMembersContents(AspNetCore.ReportingServices.OnDemandReportRendering.Tablix tablix, TablixMember memberParent, int rowMemberIndexCell, TablixState state, bool noRows, PageContext context, bool useForPageHFEval, Dictionary <string, List <object> > textBoxes) { TablixMemberCollection tablixMemberCollection = null; if (memberParent == null) { switch (state) { case TablixState.RowMembers: tablixMemberCollection = tablix.RowHierarchy.MemberCollection; break; case TablixState.ColMembers: HeaderFooterEval.CollectTablixCornerContents(tablix.Corner, context, useForPageHFEval, textBoxes); goto default; default: tablixMemberCollection = tablix.ColumnHierarchy.MemberCollection; break; } } else { tablixMemberCollection = memberParent.Children; } if (tablixMemberCollection == null) { if (state == TablixState.RowMembers) { HeaderFooterEval.CollectTablixMembersContents(tablix, null, memberParent.MemberCellIndex, TablixState.DetailRows, noRows, context, useForPageHFEval, textBoxes); } else { HeaderFooterEval.CollectDetailCellContents(tablix, memberParent.MemberCellIndex, rowMemberIndexCell, context, useForPageHFEval, textBoxes); } if (!useForPageHFEval) { return(0); } return(1); } bool flag = true; bool flag2 = true; TablixMember tablixMember = null; TablixMemberInstance tablixMemberInstance = null; TablixDynamicMemberInstance tablixDynamicMemberInstance = null; int num = 0; bool useForPageHFEval2 = useForPageHFEval; for (int i = 0; i < tablixMemberCollection.Count; i++) { useForPageHFEval2 = useForPageHFEval; tablixMember = ((ReportElementCollectionBase <TablixMember>)tablixMemberCollection)[i]; if (!noRows || !tablixMember.HideIfNoRows) { flag = true; tablixMemberInstance = tablixMember.Instance; if (tablixMember.IsStatic) { flag2 = HeaderFooterEval.ShouldBeCollected(tablixMember, ref useForPageHFEval2); } else { tablixDynamicMemberInstance = (TablixDynamicMemberInstance)tablixMemberInstance; tablixDynamicMemberInstance.ResetContext(); flag = tablixDynamicMemberInstance.MoveNext(); if (flag) { flag2 = HeaderFooterEval.ShouldBeCollected(tablixMember, ref useForPageHFEval2); } } while (flag) { if (flag2) { int num2 = HeaderFooterEval.CollectTablixMembersContents(tablix, tablixMember, rowMemberIndexCell, state, noRows, context, useForPageHFEval2, textBoxes); if (state != TablixState.DetailRows && tablixMember.TablixHeader != null && num2 > 0) { HeaderFooterEval.CollectTextBoxes(tablixMember.TablixHeader.CellContents.ReportItem, context, useForPageHFEval2, textBoxes); num++; } } if (tablixMember.IsStatic) { flag = false; } else { flag = tablixDynamicMemberInstance.MoveNext(); if (flag) { useForPageHFEval2 = useForPageHFEval; flag2 = HeaderFooterEval.ShouldBeCollected(tablixMember, ref useForPageHFEval2); } } } tablixMemberInstance = null; } } return(num); }
protected override void CreateChildren(PageContext pageContext) { base.CreateChildren(this.m_source.ReportItemCollection, pageContext); }
public override void WriteItemNonSharedStyleProps(RPLStyleProps rplStyleProps, Style styleDef, StyleInstance style, StyleAttributeNames styleAtt, PageContext pageContext) { switch (styleAtt) { case StyleAttributeNames.BackgroundColor: base.WriteStyleProp(styleDef, style, rplStyleProps, StyleAttributeNames.BackgroundColor, 34); break; case StyleAttributeNames.BackgroundImage: base.WriteBackgroundImage(styleDef, false, rplStyleProps, pageContext); break; } }
public override void WriteItemSharedStyleProps(RPLStyleProps rplStyleProps, Style style, PageContext pageContext) { PageItem.WriteStyleProp(style, rplStyleProps, StyleAttributeNames.BackgroundColor, 34); base.WriteBackgroundImage(style, true, rplStyleProps, pageContext); }
public override void WriteItemSharedStyleProps(BinaryWriter spbifWriter, Style style, PageContext pageContext) { base.WriteStyleProp(style, spbifWriter, StyleAttributeNames.BackgroundColor, 34); base.WriteBackgroundImage(style, true, spbifWriter, pageContext); }
public override RPLElement CreateRPLElement(RPLElementProps props, PageContext pageContext) { RPLItemProps props2 = props as RPLItemProps; return(new RPLBody(props2)); }