title: Using mailitem.PrintOut() to print a single page?
body: <p>I'm working on a simple Outlook 2016/2019 VSTO plugin.</p>
  <p>When an email is selected and a ribbon button is pressed, it needs to print just the first page of the email to the default printer. <code>mailitem.PrintOut();</code> works, but will print the whole email. Is there a way to specify the first page only?</p>
  <pre><code>var m = e.Control.Context as Inspector;
  var mailitem = m.CurrentItem as MailItem;
  if (mailitem != null)
  {
      mailitem.PrintOut();
  }
  </code></pre>
  <p>Update: See my answer for the code I used to get this working.</p>