Tôi đang chuyển đổi một điều khiển để một bitmap và in nó:in ảnh theo hướng ngang?
using (MemoryStream ms = new MemoryStream())
{
chart1.SaveImage(ms, ChartImageFormat.Bmp);
Bitmap bm = new Bitmap(ms);
PrintDocument doc = new PrintDocument();
doc.PrintPage += (s, ev) =>
{
ev.Graphics.DrawImage(bm, Point.Empty); // adjust this to put the image elsewhere
ev.HasMorePages = false;
};
doc.Print();
}
Làm thế nào bạn có thể chỉ định in nó ở hướng ngang?
matthew You Are the MAN !!!!!!!!!!!!! –