0

My code:

string args = @"/h /n /t """ + f + @""" ";
var adobeprocess = System.Diagnostics.Process.Start(@"AcroRd32.exe", args);
var hasExited = adobeprocess.WaitForExit(wait);

if (!hasExited)
{
    adobeprocess.CloseMainWindow();
    adobeprocess.Kill();
}

When the pdf is closed a save dialog appears, but I don't want that to appear.

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
Tinsley
  • 75
  • 7
  • https://stackoverflow.com/questions/18678114/printing-pdfs-without-opening-the-print-dialogbox – CodeCaster Dec 22 '17 at 09:11
  • @CodeCaster I don't see the solution in that question – Tinsley Dec 22 '17 at 09:34
  • 1
    There is no solution, the answer is that it isn't possible. See also https://stackoverflow.com/questions/5508763/c-sharp-prevent-adobe-reader-window-from-coming-up-when-trying-to-print-a-docume – CodeCaster Dec 22 '17 at 09:43
  • @CodeCaster Acctually the solution was not to have CutePdf Writer as standard printer. – Tinsley Jan 18 '18 at 15:18

0 Answers0