public void Tlm_NewContainer(Object oSender, TableLayoutManager.NewContainerEventArgs ea) { new Page(this); if (page_Cur.iPageNo == 1) { FontProp fp_Titulo = new FontPropMM(fd, 7); fp_Titulo.bBold = true; page_Cur.AddCT_MM(rPosIzquierda + (rPosDerecha - rPosIzquierda) / 2, rPosSuperior, new RepString(fp_Titulo, "Ordenes de Compras")); ea.container.rHeightMM -= fp_Titulo.rLineFeedMM; } page_Cur.AddMM(rPosIzquierda, rPosInferior - ea.container.rHeightMM, ea.container); }
//------------------------------------------------------------------------------------------30.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 table can be made higher. /// </remarks> public void Tlm_NewContainer(Object oSender, TableLayoutManager.NewContainerEventArgs ea) // only "public" for NDoc, should be "private" { new Page(this); // first page with caption if (page_Cur.iPageNo == 1) { FontProp fontProp_Title = new FontPropMM(fontDef_Helvetica, 7); fontProp_Title.bBold = true; page_Cur.AddCT_MM(rPosLeft + (rPosRight - rPosLeft) / 2, rPosTop, new RepString(fontProp_Title, "Customer List")); ea.container.rHeightMM -= fontProp_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); }
public void Tlm_NewContainer(object sender, TableLayoutManager.NewContainerEventArgs ea) { /* * new Page(this); * * // first page with caption * if (page_Cur.iPageNo == 1) * { * FontProp fontProp_Title = new FontPropMM(fd_text, 7, System.Drawing.Color.Black); * fontProp_Title.bBold = true; * page_Cur.AddCT_MM(rPosLeft + (rPosRight - rPosLeft) / 2, rPosTop, new RepString(fontProp_Title, "Customer List")); * ea.container.rHeightMM -= fontProp_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); */ }
private void Tlm_NewContainer(Object oSender, TableLayoutManager.NewContainerEventArgs ea) { new Page(this); if (page_Cur.iPageNo == 1) { FontProp fp_Title = new FontPropMM(fd, 3); fp_Title.bBold = true; RepImage di = new RepImageMM(this.Ruta, Double.NaN, Double.NaN); page_Cur.AddLT_MM(rPosLeft, rPosTop, di); page_Cur.AddCT_MM(rPosLeft + (rPosRight - rPosLeft) / 2, rPosTop + di.rHeightMM, new RepString(fp_Title, this.Title)); FontProp fp_Fecha = new FontPropMM(fd, 1.8); page_Cur.AddLT_MM(rPosRight, rPosTop, new RepString(fp_Fecha, DateTime.Now.ToShortDateString())); FontProp fp_SubTitle = new FontPropMM(fd, 2); fp_SubTitle.bBold = true; page_Cur.AddLT_MM(rPosLeft, rPosTop + rPosTop, new RepString(fp_SubTitle, Subtitle1)); ea.container.rHeightMM -= (fp_Title.rLineFeedMM + di.rHeightMM + fp_SubTitle.rLineFeed); // reduce height of table container for the first page } else { FontProp fp_Title = new FontPropMM(fd, 2); fp_Title.bBold = true; page_Cur.AddLT_MM(rPosLeft, rPosTop, new RepString(fp_Title, Subtitle1)); //page_Cur.AddAligned(rPosLeft, RepObj.rAlignRight, rPosTop, RepObj.rAlignTop, new RepString(fp_SubTitle, DateTime.Now.ToShortDateString())); //RepImage di = new RepImageMM(this.Ruta, Double.NaN, Double.NaN); //page_Cur.AddLT_MM(rPosLeft,rPosTop,di); //page_Cur.AddCT_MM(rPosLeft + (rPosRight - rPosLeft) / 2, rPosTop + di.rHeightMM, new RepString(fp_Title, this.Title)); //FontProp fp_SubTitle = new FontPropMM(fd, 2); //fp_SubTitle.bBold = true; //page_Cur.AddLT_MM(rPosLeft,rPosTop + rPosTop,new RepString(fp_SubTitle, Subtitle1)); ea.container.rHeightMM -= (fp_Title.rLineFeedMM); } page_Cur.AddMM(rPosLeft, rPosBottom - ea.container.rHeightMM, ea.container); }
//----------------------------------------------------------------------------------------------------x /// <summary>Creates a new page</summary> /// <param name="oSender">Sender</param> /// <param name="ea">Event argument</param> private void Tlm_NewContainer(Object oSender, TableLayoutManager.NewContainerEventArgs ea) { new Page(this); // first page with heading if (page_Cur.iPageNo == 1) { FontProp fp_Title = new FontPropMM(fd, 2); FontProp fp_Subtitle = new FontPropMM(fd, 2); RepImage di = new RepImageMM(this.Ruta, Double.NaN, Double.NaN); page_Cur.AddLT_MM(rPosLeft, rPosTop, di); page_Cur.AddLT_MM(rPosLeft, rPosTop + di.rHeightMM, new RepString(fp_Title, this.Title)); page_Cur.AddLT_MM(rPosLeft, rPosTop + di.rHeightMM + fp_Title.rLineFeedMM, new RepString(fp_Subtitle, this.Subtitle)); ea.container.rHeightMM -= (fp_Subtitle.rLineFeedMM + fp_Title.rLineFeedMM + di.rHeightMM); // 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); }