Now i restart with evolving Report.
With webview2 you have full javascript power.
Here is my code for the print button.
You see that the button is deleted during printing.
document.getElementById("fixedbutton").style.display = 'none'
Best regards,
Otto
- Code: Select all Expand view RUN
<style>
#fixedbutton {
position: fixed;
top: 0px;
left: 0px;
}
</style>
<button id="fixedbutton" class="btn btn-dark" onclick="druck()" type="button" id="look">Print</button>
<script>
function druck() {
document.getElementById("fixedbutton").style.display = 'none'
window.print();
}
</script>