Addition to my question here : How to catch printing jobs
I managed to catch PrintSystemJobInfo objects, created when a print job enters a queue by using following code:
public static void WritePrinterJobs()
{
List<PrintSystemJobInfo> jobInfos = new List<PrintSystemJobInfo>();
LocalPrintServer server = new LocalPrintServer();
while (true)
{
foreach (var jobInfo in server.DefaultPrintQueue.GetPrintJobInfoCollection())
{
Console.WriteLine(jobInfo.JobName);
}
}
}
Now, I want to read contents of a barcode being printed. Is there a way to do that?