/// <summary> /// Give the report a some outrageous formatting values. /// </summary> public void ApplyOverTheTopFormatting() { this.listViewPrinter.CellFormat = null; this.listViewPrinter.ListFont = new Font("Ms Sans Serif", 9); this.listViewPrinter.ListGridPen = new Pen(Color.Blue, 0.5f); this.listViewPrinter.HeaderFormat = BlockFormat.Header(new Font("Comic Sans MS", 36)); this.listViewPrinter.HeaderFormat.TextBrush = new LinearGradientBrush(new Point(0, 0), new Point(900, 0), Color.Black, Color.Blue); //this.listViewPrinter.HeaderFormat.BackgroundBrush = new TextureBrush(this.listView.SmallImageList.Images["music"], WrapMode.Tile); this.listViewPrinter.HeaderFormat.SetBorder(Sides.All, 10, new LinearGradientBrush(new Point(0, 0), new Point(300, 0), Color.Purple, Color.Pink)); this.listViewPrinter.FooterFormat = BlockFormat.Footer(new Font("Comic Sans MS", 12)); this.listViewPrinter.FooterFormat.TextBrush = Brushes.Blue; this.listViewPrinter.FooterFormat.BackgroundBrush = new LinearGradientBrush(new Point(0, 0), new Point(200, 0), Color.Gold, Color.Green); this.listViewPrinter.FooterFormat.SetBorderPen(Sides.All, new Pen(Color.FromArgb(128, Color.Green), 5)); this.listViewPrinter.GroupHeaderFormat = BlockFormat.GroupHeader(); Brush brush = new HatchBrush(HatchStyle.LargeConfetti, Color.Blue, Color.Empty); this.listViewPrinter.GroupHeaderFormat.SetBorder(Sides.Bottom, 5, brush); this.listViewPrinter.ListHeaderFormat = BlockFormat.ListHeader(new Font("Comic Sans MS", 12)); this.listViewPrinter.ListHeaderFormat.BackgroundBrush = Brushes.PowderBlue; this.listViewPrinter.ListHeaderFormat.TextBrush = Brushes.Black; this.listViewPrinter.WatermarkFont = new Font("Comic Sans MS", 72); this.listViewPrinter.WatermarkColor = Color.Red; }
/// <summary> /// Give the report a some outrageous formatting values. /// </summary> public void ApplyOverTheTopFormatting() { this.listViewPrinter1.CellFormat = null; this.listViewPrinter1.ListFont = new Font("Ms Sans Serif", 9); this.listViewPrinter1.ListGridPen = new Pen(Color.Blue, 0.5f); this.listViewPrinter1.HeaderFormat = BlockFormat.Header(new Font("Comic Sans MS", 36)); this.listViewPrinter1.HeaderFormat.TextBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.Black, Color.Blue, LinearGradientMode.Horizontal); this.listViewPrinter1.HeaderFormat.BackgroundBrush = new TextureBrush(this.dataListView1.SmallImageList.Images["music"], WrapMode.Tile); this.listViewPrinter1.HeaderFormat.SetBorder(Sides.All, 10, new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.Purple, Color.Pink, LinearGradientMode.Horizontal)); this.listViewPrinter1.FooterFormat = BlockFormat.Footer(new Font("Comic Sans MS", 12)); this.listViewPrinter1.FooterFormat.TextBrush = Brushes.Blue; this.listViewPrinter1.FooterFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.Gold, Color.Green, LinearGradientMode.Horizontal); this.listViewPrinter1.FooterFormat.SetBorder(Sides.All, 5, new SolidBrush(Color.FromArgb(128, Color.Green))); this.listViewPrinter1.GroupHeaderFormat = BlockFormat.GroupHeader(); this.listViewPrinter1.GroupHeaderFormat.SetBorder(Sides.Bottom, 5, new HatchBrush(HatchStyle.LargeConfetti, Color.Blue, Color.Empty)); this.listViewPrinter1.ListHeaderFormat = BlockFormat.ListHeader(new Font("Comic Sans MS", 12)); this.listViewPrinter1.ListHeaderFormat.BackgroundBrush = Brushes.PowderBlue; this.listViewPrinter1.ListHeaderFormat.TextBrush = Brushes.Black; this.listViewPrinter1.WatermarkFont = new Font("Comic Sans MS", 72); this.listViewPrinter1.WatermarkColor = Color.Red; }
/// <summary> /// Give the report a minimal set of default formatting values. /// </summary> public void ApplyModernFormatting() { this.listViewPrinter.CellFormat = null; this.listViewPrinter.ListFont = new Font("Ms Sans Serif", 9); this.listViewPrinter.ListGridPen = new Pen(Color.DarkGray, 0.5f); this.listViewPrinter.HeaderFormat = BlockFormat.Header(new Font("Verdana", 24, FontStyle.Bold)); this.listViewPrinter.HeaderFormat.BackgroundBrush = new LinearGradientBrush(new Point(0, 0), new Point(200, 0), Color.DarkBlue, Color.White); this.listViewPrinter.FooterFormat = BlockFormat.Footer(); this.listViewPrinter.FooterFormat.BackgroundBrush = new LinearGradientBrush(new Point(0, 0), new Point(200, 0), Color.White, Color.Blue); this.listViewPrinter.GroupHeaderFormat = BlockFormat.GroupHeader(); this.listViewPrinter.ListHeaderFormat = BlockFormat.ListHeader(new Font("Verdana", 12)); this.listViewPrinter.WatermarkFont = null; this.listViewPrinter.WatermarkColor = Color.Empty; }
/// <summary> /// Give the report a minimal set of default formatting values. /// </summary> public void ApplyModernFormatting() { this.listViewPrinter1.CellFormat = null; this.listViewPrinter1.ListFont = new Font("Verdana", 9); this.listViewPrinter1.ListGridPen = new Pen(Color.DarkGray, 0.5f); this.listViewPrinter1.HeaderFormat = BlockFormat.Header(new Font("Verdana", 24, FontStyle.Bold)); this.listViewPrinter1.HeaderFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.DarkBlue, Color.White, LinearGradientMode.Horizontal); this.listViewPrinter1.FooterFormat = BlockFormat.Footer(); this.listViewPrinter1.FooterFormat.BackgroundBrush = new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.White, Color.DarkBlue, LinearGradientMode.Horizontal); this.listViewPrinter1.GroupHeaderFormat = BlockFormat.GroupHeader(); this.listViewPrinter1.ListHeaderFormat = BlockFormat.ListHeader(new Font("Verdana", 12)); this.listViewPrinter1.WatermarkFont = null; this.listViewPrinter1.WatermarkColor = Color.Empty; }
/// <summary> /// Give the report a minimal set of default formatting values. /// </summary> public void ApplyMinimalFormatting() { this.listViewPrinter1.CellFormat = null; this.listViewPrinter1.ListFont = new Font("Tahoma", 9); this.listViewPrinter1.HeaderFormat = BlockFormat.Header(); this.listViewPrinter1.HeaderFormat.TextBrush = Brushes.Black; this.listViewPrinter1.HeaderFormat.BackgroundBrush = null; this.listViewPrinter1.HeaderFormat.SetBorderPen(Sides.Bottom, new Pen(Color.Black, 0.5f)); this.listViewPrinter1.FooterFormat = BlockFormat.Footer(); this.listViewPrinter1.GroupHeaderFormat = BlockFormat.GroupHeader(); this.listViewPrinter1.GroupHeaderFormat.SetBorder(Sides.Bottom, 2, new LinearGradientBrush(new Rectangle(0, 0, 1, 1), Color.Gray, Color.White, LinearGradientMode.Horizontal)); this.listViewPrinter1.ListHeaderFormat = BlockFormat.ListHeader(); this.listViewPrinter1.ListHeaderFormat.BackgroundBrush = null; this.listViewPrinter1.WatermarkFont = null; this.listViewPrinter1.WatermarkColor = Color.Empty; }
/// <summary> /// Give the report a minimal set of default formatting values. /// </summary> public void ApplyMinimalFormatting() { this.listViewPrinter.CellFormat = null; this.listViewPrinter.ListFont = new Font("Tahoma", 9); this.listViewPrinter.HeaderFormat = BlockFormat.Header(); this.listViewPrinter.HeaderFormat.TextBrush = Brushes.Black; this.listViewPrinter.HeaderFormat.BackgroundBrush = null; this.listViewPrinter.HeaderFormat.SetBorderPen(Sides.Bottom, new Pen(Color.Black, 0.5f)); this.listViewPrinter.FooterFormat = BlockFormat.Footer(); this.listViewPrinter.GroupHeaderFormat = BlockFormat.GroupHeader(); Brush brush = new LinearGradientBrush(new Point(0, 0), new Point(200, 0), Color.Gray, Color.White); this.listViewPrinter.GroupHeaderFormat.SetBorder(Sides.Bottom, 2, brush); this.listViewPrinter.ListHeaderFormat = BlockFormat.ListHeader(); this.listViewPrinter.ListHeaderFormat.BackgroundBrush = null; this.listViewPrinter.WatermarkFont = null; this.listViewPrinter.WatermarkColor = Color.Empty; }