Reports with webview2

Post Reply
User avatar
Otto
Posts: 6413
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 27 times
Been thanked: 2 times
Contact:

Reports with webview2

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

 
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
Posts: 6413
Joined: Fri Oct 07, 2005 7:07 pm
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: Reports with webview2

Post by Otto »

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
Post Reply