Click here to Skip to main content
15,881,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Print the Content of GropBox
The size of GroupBox is More than the size of the Form.
The size of GroupBox Depends on the number of records retrieved from Database.
If the records retrieved are more then only one page is printed and rest of the records are skiped.
Please Help
C#
private void Design_PrintDocument_PrintPage(object sender, PrintPageEventArgs e)
        {
            Bitmap bm = new Bitmap(this.Report_GroupBox.Width, this.Report_GroupBox.Height);
            Report_GroupBox.DrawToBitmap(bm, new Rectangle(0, 0, this.Report_GroupBox.Width, this.Report_GroupBox.Height));
            e.Graphics.DrawImage(bm, 0, 0);
        }
Posted
Updated 11-Oct-12 0:55am
v2
Comments
Sergey Alexandrovich Kryukov 15-Oct-12 18:22pm    
Not a question. Help with what?
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900