title: Failed to load pdf document after downloading the document from IE11
body: <p>I have an ajax call where I am calling JSReport and downloading the pdf document. In chrome and other browsers, it works correctly. The document is downloaded and I can open it. But in IE11, the document is downloaded but if I want to open the pdf file, it always shows failed to load pdf document. I debugged the code in IE11 console, but it did not give any error.
  Here is my code,</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$.ajax({
                  url: 'my api url',
                  headers: { 'Accept': 'application/json', 'Content-Type': 'application/json' },
                  type: 'POST',
                  data: JSON.stringify(selectedIds),
                  success: function (data) {
                      var a = document.createElement('a');
                      var isIE = false || !!document.documentMode;
                      
                      if (!isIE) {
                          // This part is working properly
                          for (var i = 0; i &lt; data.length; i++) {
                              a.href = "data:application/octet-stream;base64," + data[i];
                              a.target = '_blank';
                              a.download = 'report.pdf';
                              a.click();
                          }
                      } else {
                          // This part is for IE11 browser where I have problem to load the document after download
                          for (var i = 0; i &lt; data.length; i++) {
                              var file = new Blob([data[i]], {
                                  type: 'application/octet-stream'
                              });
                              window.navigator.msSaveOrOpenBlob(file, 'report.pdf');
                          }
                      }
                      
                  },
                  fail: function (jqXHR, textStatus) {
                      alert("Request failed: " + textStatus);
                  }
              });</code></pre>
  </div>
  </div>
  </p>