void flm_eNewContainer(object oSender, FlowLayoutManager.NewContainerEventArgs ea) { StaticContainer sc = new StaticContainerMM(175, 230); this.PaginaPDF.AddMM(16, this.LinhaAtual, sc); ea.flm.SetContainer(sc); }
//------------------------------------------------------------------------------------------31.10.2004 /// <summary>Creates a new page.</summary> /// <param name="oSender">Sender</param> /// <param name="ea">Event argument</param> /// <remarks> /// The first page has a caption . The following pages have no caption and therefore the text area can be made higher. /// </remarks> private void Flm_NewContainer(Object oSender, FlowLayoutManager.NewContainerEventArgs ea) { new Page(this); // first page with caption if (page_Cur.iPageNo == 1) { FontProp fp_Title = new FontPropMM(fd, 7); fp_Title.bBold = true; page_Cur.AddCT_MM(rPosLeft + (rPosRight - rPosLeft) / 2, rPosTop, new RepString(fp_Title, "Flow Layout Manager Sample")); ea.container.rHeightMM -= fp_Title.rLineFeedMM; // reduce height of table container for the first page } // the new container must be added to the current page page_Cur.AddMM(rPosLeft, rPosBottom - ea.container.rHeightMM, ea.container); }