Пример #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ReportHeader reportHeader = new ReportHeader();

            this.Controls.Add(reportHeader);

            Bitmap bmp = new Bitmap(1100, 800);

            reportHeader.DrawToBitmap(bmp, new Rectangle(0, 0, bmp.Width, bmp.Height));
            reportHeader.Hide();
            this.BackgroundImage = bmp;
        }