I am trying to make a printing manangement server. I have 1 printer which is shared with 4 other people.
try
{
string PrinterJobs = "SELECT * FROM Win32_PrintJob";
ManagementObjectSearcher FindPrintJobs =
new ManagementObjectSearcher(PrinterJobs);
ManagementObjectCollection prntJobCollection = FindPrintJobs.Get();
foreach (ManagementObject prntJob in prntJobCollection)
{
string jobName = prntJob.Properties["Name"].Value.ToString();
string documentName = prntJob.Properties["Document"].Value.ToString();
string nbcopie = prntJob.Properties["TotalPages"].Value.ToString();
}
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
But i need to get number of copies of each printjob( eg user2 make 3copy of the same print job)
I need to see copy count before printing. please help me