/// <summary> /// 创建输出页面 /// </summary> /// <param name="p_x"></param> /// <param name="p_y"></param> /// <returns></returns> RptPage CreatePage(int p_x, int p_y) { if (p_x >= PageCols) { PageCols = p_x + 1; } RptPage page = new RptPage(p_x, p_y, this); Pages.Add(page); if (p_x > 0) { HorPageBegin?.Invoke(this, page); } if (p_y > 0) { VerPageBegin?.Invoke(this, page); } // 输出新页面时重复页眉页脚 if (Header != null) { Header.Clone().Output(page); } if (Footer != null) { Footer.Clone().Output(page); } return(page); }
// Configuration public override SaveFile Clone() { var sav = CloneInternal(); SetData(sav.General, General, 0); SetData(sav.Storage, Storage, 0); sav.Footer = (byte[])Footer.Clone(); return(sav); }
public override SaveFile Clone() => new SAV5B2W2((byte[])Data.Clone()) { Footer = (byte[])Footer.Clone() };
// Configuration public override SaveFile Clone() => new SAV5((byte[])Data.Clone(), Version) { Footer = (byte[])Footer.Clone() };