$scope.data.sendData = function(){
var iframe = document.createElement('iframe');
iframe.style.width="100%";
iframe.style.height="100%";
var html = '<form id="ReportSingle" action="ReportSingle?templateName='+data.templateName+'&reportLang=' + data.reportLang
+ '" method="post" style="display:none" enctype="application/x-www-form-urlencoded"><input type="hidden" id="data" name="data"/><submit/></form>';
document.getElementById("body-download").innerHTML = "";
document.getElementById("body-download").appendChild(iframe);
iframe.contentWindow.document.open();
iframe.contentWindow.document.write(html);
iframe.contentWindow.document.close();
var form = iframe.contentDocument.forms["ReportSingle"];
form.elements["data"].value = strLangPart;
form.submit();
};