I am trying to print 4 PDF or 4 Jpeg with my C# code, but i have a very importart problem. Here is my code for the print of PDFs :
for (int pdfcount = 1; pdfcount < 5; pdfcount++)
{
filename = "Doc" + pdfcount + ".pdf";
ProcessStartInfo psInfo = new ProcessStartInfo();
psInfo.FileName = @"C:\Program Files\Adobe\Reader 11.0\Reader\AcroRd32.exe";
psInfo.Arguments = String.Format("/n /s /o /h /p{0}", filename);
psInfo.CreateNoWindow = true;
psInfo.UseShellExecute = true;
psInfo.WindowStyle = ProcessWindowStyle.Hidden;
Process process = Process.Start(psInfo);
}
So it works but i have a problem with the priority. I send for printing the Doc1.pdf,Doc2,Doc3 and Doc4.pdf with this order but my printer printing them mixed. For example it prints first the Doc3 after that the Doc2...etc. How i could make my queue of printer to be fixed?