private void printToolStripMenuItem_Click(object sender, EventArgs e)
{
printDialog1.AllowCurrentPage = true;
printDialog1.AllowPrintToFile = true;
printDialog1.AllowSelection = true;
printDialog1.AllowSomePages = true;
// pageSetupDialog1.PageSettings.Margins;
printDialog1.PrinterSettings = new System.Drawing.Printing.PrinterSettings();
pageSetupDialog1.ShowDialog();
DialogResult dk = pageSetupDialog1.ShowDialog();
if (dk == DialogResult.OK)
{
object[] resul = new object[]{
printDialog1.PrinterSettings.MaximumCopies,
printDialog1.PrintToFile,
printDialog1.ShowNetwork,
};
}
.
嗨,我正在尽我所能在谷歌中搜索,但我的问题还没有解决。我知道在stackoverflow上解决了这个错误。我的项目控件中有文本框、菜单条和 openDialogbox、PrintDialog 等。