//void link_CreateReportHeaderArea(object sender, CreateAreaEventArgs e) //{ // //DevExpress.XtraPrinting.TextBrick brick; // //brick = e.Graph.DrawString("Tesseramento " + cboAnno.Text, Color.Navy, new RectangleF(0, 0, 500, 40), DevExpress.XtraPrinting.BorderSide.None); // //brick.Font = new Font("Tahoma", 16); // //brick.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Center); //} private void Link_CreateMarginalHeaderArea(object sender, CreateAreaEventArgs e) { // PageInfoBrick brick = e.Graph.DrawPageInfo(PageInfo.DateTime, "", Color.DarkBlue, // new RectangleF(0, 0, 100, 20), BorderSide.None); // brick.LineAlignment = BrickAlignment.Center; // brick.Alignment = BrickAlignment.Center; // brick.AutoWidth = true; DevExpress.XtraPrinting.TextBrick brick1; brick1 = e.Graph.DrawString(" Tesseramento " + cboAnno.Text, Color.Navy, new RectangleF(0, 0, 500, 40), DevExpress.XtraPrinting.BorderSide.None); brick1.Font = new Font("Tahoma", 16); brick1.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Center); brick1.VertAlignment = DevExpress.Utils.VertAlignment.Top; DevExpress.XtraPrinting.TextBrick brick2; brick2 = e.Graph.DrawString("Elenco rimesse delle strutture periferiche Feneal UIL \nal: " + AbstractMovimentoContabile.GetLastMovivimentoDate(gridControl1.DataSource as IList).ToShortDateString(), Color.Navy, new RectangleF(0, 25, 600, 31), DevExpress.XtraPrinting.BorderSide.None); // brick2.Font = new Font("Tahoma", 10, FontStyle.Bold); brick2.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Center); brick2.VertAlignment = DevExpress.Utils.VertAlignment.Center; //GetDate(Convert.ToInt32( cboAnno.Text)) DevExpress.XtraPrinting.TextBrick brick4; brick4 = e.Graph.DrawString(orderBy, Color.Navy, new RectangleF(0, 50, 600, 25), DevExpress.XtraPrinting.BorderSide.None); brick4.Font = new Font("Tahoma", 10, FontStyle.Bold); brick4.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Center); brick4.VertAlignment = DevExpress.Utils.VertAlignment.Bottom; //GetDate(Convert.ToInt32( cboAnno.Text)) DevExpress.XtraPrinting.TextBrick brick3; brick3 = e.Graph.DrawString("FENEAL U.I.L. \nSEGRETERIA NAZIONALE \nServizio Amministrazione \nServizio Organizzazione", Color.Red, new RectangleF(0, 0, 150, 75), DevExpress.XtraPrinting.BorderSide.None); brick3.Font = new Font("Tahoma", 7, FontStyle.Bold); brick3.StringFormat = new DevExpress.XtraPrinting.BrickStringFormat(StringAlignment.Near); brick3.VertAlignment = DevExpress.Utils.VertAlignment.Top; }