Posted by a ceTe Software moderator
Hi ,
You can achieve your requirement by using Updated event of PrintJob object.
Here is a code sample:
private static void Job_Updated(object sender, PrintJobEventArgs e)
{
PrintJobStatus jobStatus= e.PrintJob.Status;
int printedPage = e.PrintJob.PagesPrinted;
if (jobStatus.ToString() == "Printing")
{
Console.WriteLine("Printing " + printedPage + " of " + e.PrintJob.Pages.Count);
}
if (jobStatus.ToString()== "Printed")
{
Console.WriteLine("Printed " + printedPage + " of " + e.PrintJob.Pages.Count);
}
}
Thanks,
ceTe Software Support Team