So I have the following code to access the local printer and its current jobs in C#:
PrintQueue pq = LocalPrintServer.GetDefaultPrintQueue();
PrintJobInfoCollection pjic = pq.GetPrintJobInfoCollection();
foreach( var printjob in pjic)
{
Console.WriteLine(printjob.Name);
}
Console.ReadLine();
What I want to do is send this PrintQueue object to another computer which is connected to a printer and add the jobs in this queue to jobs of that queue. So essentially, the idea is to print remotely over the networks. I have some network programming experience in Java but not enough to translate well into C#. So I was wondering if anyone can break it down for me. ( And I know there are tons of ways of configuring Windows/Mac OS to print from a remote printer but this application is a learning experience for me). Thanks !