Page 1 of 1

Reports with webview2

Posted: Sat Aug 20, 2022 9:06 am
by Otto
Hello friends,
Now i restart with evolving Image 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


  <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>

 

Re: Reports with webview2

Posted: Sat Aug 20, 2022 2:37 pm
by Otto
Image