title: HTML images are missing while printing a webpage from browser chrome
body: <p>I am using a javascript code to print an image with some text as well. I have used a div area in my html page named 'divPrintArea'. The content of that div will be printed through calling the javascript function.</p>
  
  <p>Images are coming fine while printing from all the browsers except Chrome(i.e. latest versions of ie, firefox, opera, safari). But in case of Chrome it is missing sometimes.</p>
  
  <p>My second issue is I couldn't set the default page layout to 'Landscape'. Do you have any clue? Please give some solutions in detail.
  TIA.</p>
  
  <pre><code>function printdata() {
  var printHtml = "";
  printHtml = printHtml + "&lt;!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'&gt;";
  printHtml = printHtml + "&lt;html xmlns='http://www.w3.org/1999/xhtml'&gt;";
  printHtml = printHtml + "&lt;head&gt;";
  printHtml = printHtml + "&lt;meta http-equiv='cache-control' content='no-cache, must-revalidate'&gt;";
  printHtml = printHtml + "&lt;meta http-equiv='refresh' content='0; http://www.MyWebsite.com/' /&gt;";
  printHtml = printHtml + "&lt;meta http-equiv='expires' content='-1'&gt;";
  printHtml = printHtml + "&lt;meta http-equiv='pragma' content='no-cache, must-revalidate'&gt;";
  printHtml = printHtml + "&lt;title&gt;www.MyWebsite.com&lt;/title&gt;";
  printHtml = printHtml + "&lt;style type=\"text/css\" media=\"print\"&gt;td{border:0px solid #000; padding:2px 5px;}";
  printHtml = printHtml + "body{background:#fff;";
  printHtml = printHtml + "width='100%';";
  printHtml = printHtml + "height='100%';";
  printHtml = printHtml + "filter:progid:DXImageTransform.Microsoft.BasicImage(Rotation=3);";
  printHtml = printHtml + "}";
  printHtml = printHtml + "&lt;/style&gt;&lt;/head&gt;";
  printHtml = printHtml + "&lt;body&gt;";
  printHtml = printHtml + "&lt;div style=\"text-align:left; border-bottom:1px dashed #2D86C5; border-top:1px dashed #2D86C5; font-family:'GillSansMTRegular', Arial;\"&gt;";
  printHtml = printHtml + document.getElementById("divPrintArea").innerHTML;
  printHtml = printHtml + "&lt;/div&gt;";
  printHtml = printHtml + "&lt;/body&gt;";
  printHtml = printHtml + "&lt;/html&gt;";
  win = window.open("http://www.MyWebsite.com/", "My");
  win.document.write(printHtml);
  win.document.close();
  win.focus();
  win.onload = win.print();
  win.close();
  return false;
  </code></pre>
  
  <p>}</p>