i need to print groupbox with its content on full page... (its basically a bill).
can someone please guide me..
i have written the code but the PrintPreview shows only half image...
here is the code..
private void prnt_preview_btn_Click(object sender, EventArgs e)
PrintPreviewDialog ppd = new PrintPreviewDialog();
PrintDocument pd = new PrintDocument();
pd.PrintPage += new PrintPageEventHandler(print);
ppd.Document = pd;
void print(object sender, PrintPageEventArgs e)
int width = 1000;
int height = 1800;
Bitmap bmp = new Bitmap(width, height);
Rectangle rec = new Rectangle(0, 0, bill_groupbox.Width,height);
i have not done any printing related codeing earlier.. hence,i don't have much experience...
could someone please help me with this...
Thanks in Advance... :)