1
People in my project use MVC, on the front end use angular/html/js, etc. I need to print a report, what’s the best way to do it? what tools to use?
I ran a test using this code:
$scope.printReceita = function () {
document.getElementById('btn1').onclick = function () {
var conteudo = document.getElementById('receita').innerHTML,
tela_impressao = window.open('about:blank');
tela_impressao.document.write(conteudo);
tela_impressao.window.print();
tela_impressao.window.close();
};
}
however I am having difficulty with the following situation, I have this H3:
<h3 ng-show="cons_obs.length > 1"> Observações</h3><br />
even the variable cons_obs.length being == -1, in the print appears "Remarks".
I imagine you have some form/tool that’s more suitable.
Managed to solve?
– Leandro Angelo