C#打印程序报错
当应用程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作。请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。
错误代码在这
行 366: printDialog.Document = printDocument;
行 367: DialogResult result = printDialog.ShowDialog();
行 368: if (result == DialogResult.OK)
行 369: {第367行错误 怎么解决啊?????????在线等
当应用程序不是以 UserInteractive 模式运行时显示模式对话框或窗体是无效操作。请指定 ServiceNotification 或 DefaultDesktopOnly 样式,以显示服务应用程序发出的通知。
错误代码在这
行 366: printDialog.Document = printDocument;
行 367: DialogResult result = printDialog.ShowDialog();
行 368: if (result == DialogResult.OK)
行 369: {第367行错误 怎么解决啊?????????在线等
LZ 帮你顶一个 虽然你的1L看不见了