title: ExecWB Print Preview Sometimes shows blank pages
body: <p>This is a weird one. I am using the ExecWB method to create a PrintPreview window. Most of the time the print preview appears correctly. But sometimes it shows a blank page and that is all. Has anyone seen this before? The problem appears to be isolated to IE6. The problem is very hit and miss so it is difficult to determine what is going wrong.</p>
  
  <pre><code> function onBodyLoad() {
      if (document.getElementById("contentPanel") != null) {
          var editCloseCell = document.getElementById('editCloseCell');
          editCloseCell.style.visibility = "hidden";
  
  
          var OLECMDID = 7; // 7 == Print Preview
          var PROMPT = 1; // 2 == DONTPROMPTUSER
  
          document.getElementById('webBrowser').ExecWB(OLECMDID, PROMPT);
          editCloseCell.style.visibility = "visible";
  </code></pre>
  
  <p>The 'webBroswer' element is an object. The contents of the control seem to be displaying correctly. Could it be that the execWB method is being called before the control is populated?? </p>
  
  <p>Any insite on this would be helpful.</p>
  
  <p>Thanks!</p>