title: Crystal Reports/Windows 7: Crystal reports asks for a default email client, and posts an error
body: <p>Crystal Reports 11 (craxdrt.dll 11.5.7.1048)
  Windows 7</p>
  
  <p>I'm using Crystal Reports to <strong>export to a PDF document</strong>, using CRYSTALCRAXDRT::IReport::Export, and am getting an error, Windows 7 only.</p>
  
  <p><em>"There is no email program associated to perform the requested action.  Please install an email program or, if one is already installed, create an association in the Default Programs control panel."</em></p>
  
  <p>Again, I'm not trying to send email, just create a document.</p>
  
  <p>I've put forth a little debugging effort into this, and what seems to be happening is this: </p>
  
  <ol>
  <li>I call into craxdrt.dll via the IReport interface, function Export(...), and then, monitoring with procmon, I find that there are several hundred registry queries for default mailer, contacts, etc.</li>
  <li>It would seem that craxdrt.dll is building a large-ish data structure ahead of the task with whatever info it might need for a family of functions.</li>
  <li>There's an error posted when the program can't find a default email client</li>
  </ol>
  
  <p>Problems with this:</p>
  
  <ol>
  <li>Windows 7 does not ship with a default email client, and early investigation seems to indicate that installing one does not necessarily ameliorate the problem. In any case, I do not expect all of our clients to have one installed, nor do our clients expect to have one installed by us.</li>
  <li>Absent the actual need for an email client (i.e., in the above case), we're still getting this error message pop-up.</li>
  </ol>
  
  <p>Note:
  Interestingly, this doesn't actually prevent the user from pressing the export button <em>again</em>, and in fact if the user does this, the error does <em>not</em> show up, as the registry queries are apparently done only once per load or use of craxdrt.dll.</p>