Я хотел бы напечатать форму с расчетными данными, Grafs, DataGrids ... У меня возникли проблемы, перевод C# код для печати на F # код:Как я могу напечатать форму с помощью F #
private void CaptureScreen()
{
Graphics myGraphics = this.CreateGraphics();
Size s = this.Size;
memoryImage = new Bitmap(s.Width, s.Height, myGraphics);
Graphics memoryGraphics = Graphics.FromImage(memoryImage);
memoryGraphics.CopyFromScreen(this.Location.X, this.Location.Y, 0, 0, s);
}
private void printDocument1_PrintPage(System.Object sender,
System.Drawing.Printing.PrintPageEventArgs e)
{
e.Graphics.DrawImage(memoryImage, 0, 0);
}
Я не могу правильно связать PrintDocument, PrintDialog и PrintPageEventArgs. Может ли кто-нибудь указать мне в правильном направлении?
Благодаря