Panel to Bitmap
Bitmap MyChartPanel = new Bitmap(PrintPanel.Width, PrintPanel.Height * 5);
PrintPanel.DrawToBitmap(MyChartPanel, new Rectangle(0, 0, PrintPanel.Width, PrintPanel.Height));
Point pp = new Point(40, 50); //調整列印的座標
e.Graphics.DrawImage(MyChartPanel, pp);
留言
張貼留言