title: Crystal reports 11 RDC (COM API) displays printer dialog even when I tell it not to prompt
body: <p>I'm using Crystal Reports 11's RDC (COM) API to print. My code looks like this:</p>
  
  <pre><code>HRESULT res = m_Report-&gt;SelectPrinter(b_driver, b_device, b_port);
  if (FAILED(res)) return res;
  // For these calls, the #import wrapper throws on error
  m_Report-&gt;PutPrinterDuplex(dmDuplex);
  m_Report-&gt;PutPaperSize(dmPaperSize);
  m_Report-&gt;PutPaperSource((CRPaperSource)pdlg-&gt;GetDevMode()-&gt;dmDefaultSource);
  if (m_Report-&gt;GetPaperOrientation() == crDefaultPaperOrientation)
      m_Report-&gt;PutPaperOrientation(crPortrait);
  
  VARIANT vfalse;
  VariantInit(&amp;vfalse);
  vfalse.vt=VT_BOOL;
  vfalse.boolVal=0;
  
  res = m_Report-&gt;PrintOut(vfalse);
  </code></pre>
  
  <p>However, at the end of all this, crystal reports still shows its own printer selection dialog - but only for some reports, it seems. Why does crystal reports show a print dialog even when I pass false for <code>promptUser</code>? And how, then, can I suppress crystal reports' internal printer selection dialog and force it to use my values?</p>
  
  <p>Edit: Whoops, CR11, not CR9.</p>
  
  <p>Some further information:</p>
  
  <ul>
  <li>The reports that work properly (ie, do not show the print dialog) are generated internally using the RDC API; we create a new report object, import subreports into it, then print the result. No problem there.</li>
  <li>The reports that <em>do not</em> work properly (ie, force the print dialog to open) have been created with a previous version of crystal reports; however, opening and saving the report does not seem to help.</li>
  <li>Sample reports in the Crystal Reports installation directory show the same problem.</li>
  </ul>
  
  <p>I tried reproducing with VBScript; however, the result was that nothing was printed at all (no dialog, no nothing):</p>
  
  <pre><code>Set app = CreateObject("CrystalRuntime.Application.11")
  Set report = app.OpenReport("C:\Program Files\Business Objects\Crystal Reports 11.5\Samples\en\Reports\General Business\Inventory Crosstab.rpt")
  report.PrintOut(True)
  rem Testing with a True parameter to force a print dialog - but no printout and nothing appears (no error either though)
  </code></pre>