Printspooler

Sushil Agarwal 381 Reputation points
2021-10-19T06:25:28.827+00:00

In an application we sign n print pdf files. At times when number of PDFs sent for print are above 100 or more the printing sequence changes and prints are not in the order it was sent for print how this can be solved

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,841 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sushil Agarwal 381 Reputation points
    2021-10-19T11:47:55.527+00:00
    ProcessStartInfo info = new ProcessStartInfo();
                    info.Verb = "print";
                    info.FileName = pdf2print;
                    //info.CreateNoWindow = false;
                    info.WindowStyle = ProcessWindowStyle.Hidden;
                    //info.UseShellExecute = true;
    
                    Process p = new Process();
                    p.StartInfo = info;
                    //MessageBox.Show("Print Will Start Now");
                    try
                    {
                        p.Start();
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.ToString());
                    }