title: Customizing Save File Dialog of Printing
body: <p>I want to set the File Name for Save file dialog that appears when print button is clicked.
  I've tried this. And it does not work. (File Name does not changed)!
  Can sommeone tell me any idea.</p>
  
  <pre><code>PrintDocument pd = rep.Document;
  PrintDialog printDialog = new PrintDialog();
  DialogResult userResp = printDialog.ShowDialog();
  if (userResp == DialogResult.OK)
  {
         pd.PrinterSettings.PrintToFile = true;
         SaveFileDialog pdfSaveDialog = new SaveFileDialog();
         pdfSaveDialog.FileName = "MyNewReport";
         pdfSaveDialog.Filter = "PDF File|*.pdf";
         userResp = pdfSaveDialog.ShowDialog();
         if (userResp != DialogResult.Cancel)
         {
               pd.PrinterSettings.PrintFileName = pdfSaveDialog.FileName;
                pd = rep.C1Document.Document; 
                      pd.Print();
         }
   }
  </code></pre>
  
  <p>Here are some images.
  [  [1]: <a href="https://i.stack.imgur.com/Pp81E.png][1]" rel="nofollow noreferrer">https://i.stack.imgur.com/Pp81E.png][1]</a></p>
  
  <p>User clicks print button.Then my customized SaveFileDialog appears.
  [  [2]: <a href="https://i.stack.imgur.com/S9gW9.png][2]" rel="nofollow noreferrer">https://i.stack.imgur.com/S9gW9.png][2]</a></p>
  
  <p>After user clicking Save button, another SaveFileDialog appears with default File Name and it actually do printing process. But file name cannot be set.
  [  [1]: <a href="https://i.stack.imgur.com/3V5ik.png][1]" rel="nofollow noreferrer">https://i.stack.imgur.com/3V5ik.png][1]</a></p>