I want to save my .Net Windows Panel value in Pdf file,but when save as pdf only one panel value save as one pdf page,another page not open.i want to make more than one pdf page.
this is my code for save pdf file.
Bitmap bmp = new Bitmap(this.panelMain.Width, this.panelMain.Height);
this.panelMain.DrawToBitmap(bmp, new Rectangle(0, 0, this.panelMain.Width, this.panelMain.Height));
PdfDocument doc = new PdfDocument();
PdfPage oPage = new PdfPage();
XGraphics xgr = XGraphics.FromPdfPage(oPage);
xgr.DrawImage(bmp, 0, 0);
saveFileDialog1.Filter = ("PDF File|*.pdf");
DialogResult btnSave = saveFileDialog1.ShowDialog();
plz help me
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)