c# - System.Printing.PrintJobException: 'An exception occurred while setting the print job. Win32 error: The parameter i
- c - Solaris 10 make Error code 1 Fatal Error when trying to build python 2.7.16 - Stack Overflow 推荐度:
- javascript - How to dismiss a phonegap notification programmatically - Stack Overflow 推荐度:
- javascript - Get the JSON objects that are not present in another array - Stack Overflow 推荐度:
- javascript - VS 2015 Angular 2 import modules cannot be resolved - Stack Overflow 推荐度:
- javascript - Type 'undefined' is not assignable to type 'menuItemProps[]' - Stack Overflow 推荐度:
- 相关推荐
I am working on application where I need to monitor print jobs. It was working on WinForms example project, but not working in WPF project.
void pqm_OnJobStatusChange(object Sender, PrintJobChangeEventArgs e)
{
try
{
PrintSystemJobInfo job = e.JobInfo;
if (job == null) return;
if (job.IsSpooling)
{
job.Pause(); // Getting error here
}
else if (job.IsPaused)
{
PrintQueue pq = job.HostingPrintQueue;
pq.Refresh();
if (JobDetails(printer, e.JobID))
{
job.Resume();
}
else
{
job.Cancel();
}
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Error Exception:
System.Printing.PrintJobException: 'An exception occurred while setting the print job. Win32 error: The parameter is incorrect.
最新文章
- 从基础软硬件兼容性谈桌面云的应用
- 虚拟现实技术2015年将迎来爆发
- 鲍尔默:未来5至10年微软将不再像一家软件公司
- Windows8是备胎?解析微软移动市场战略
- 3Q大战2012版打起来了
- How can I add a Linux system-level API without recompiling the kernel? - Stack Overflow
- google apps script - How do I make it so specific cells get deleted or set to a specific # each time the workbook is opened? the
- python - NaN values in Pandas are not being filled by the interpolate function when it's applied to a full dataframe - S
- Error installing pip packages due to error in launcher and wrong python version - Stack Overflow
- rust - Why is the compiler asking for Sized, when I already added it? - Stack Overflow
- php - New default Moodle setup, no cssimages? - Stack Overflow
- postgresql - Postgres Postgis ST_DWithin query is not accurate - Stack Overflow
- rust - Remove struct from vector while mutably iterating through it - Stack Overflow
- ios - SwiftUI TextField with UIKit wrapper expanding full screen when entering numbers in custom crypto swap interface - Stack O
- scipy - Problem with a simple script in which the Librosa Python library does not work well for me - Stack Overflow
- volttron - POSTMAN REST Call Results in RPC Timed Out: 5 Seconds - Stack Overflow
- postgresql - Custom stopwords dictionary in Postgres hosted on GCP Cloud SQL - Stack Overflow