Пример #1
0
 private void BtnPrint_Click(object sender, EventArgs e)
 {
     JsonProfile           = MyCar.LoadCarList().Result;
     MyCar                 = new Car();
     Print_Dialog.Document = PrintDoc;
     // Print_Dialog.WindowState = FormWindowState.Maximized;
     Print_Dialog.Width         = 1000;
     Print_Dialog.Height        = 500;
     Print_Dialog.Text          = "Car Profile";
     Print_Dialog.StartPosition = FormStartPosition.CenterScreen;
     Print_Dialog.ShowDialog();
 }
Пример #2
0
 /// <summary>
 /// 预览模板
 /// </summary>
 private void Tool_preview_Click(object sender, EventArgs e)
 {
     PrintPreview();//预览设置
     Print_Dialog.ShowDialog();
 }