Automatic printing in C# with ProcessStartInfo cutting off bottom and top
<p>I am using <code>ProcessStartInfo</code> to print my pdf file in my C# project in background. But the file that I printed is cutting off my top and bottom of the pdf file when printed. But when I print the same file by right clicking the pdf file it prints correctly.</p>

<p>Here is my code:</p>

<pre><code>        System.Diagnostics.Process process = new Process();
        ProcessStartInfo startInfo = new ProcessStartInfo();
        startInfo.FileName = filename; // use default app to execute verb

         //assert: can only go to local default printer
       startInfo.Verb = "Print"; //prints to default printer                   
        //try to keep Window hidden - work in background
        startInfo.UseShellExecute = true;
        startInfo.WindowStyle = ProcessWindowStyle.Hidden;
        startInfo.CreateNoWindow = true;
        // set process to startInfo and execute start
        process.StartInfo = startInfo;
        process.Start();
        process.WaitForExit(10000);
        process.CloseMainWindow();
        process.Close();
</code></pre>

<p>Please help me.</p>
