Reports with webview2

Reports with webview2

Postby Otto » Sat Aug 20, 2022 9:06 am

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 view

  <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: 6238
Joined: Fri Oct 07, 2005 7:07 pm

Re: Reports with webview2

Postby Otto » Sat Aug 20, 2022 2:37 pm

Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6238
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 58 guests