FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Reports with webview2
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Reports with webview2
Posted: Sat Aug 20, 2022 09:06 AM
Hello friends,
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 (fw): Select all Collapse
  <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>
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: Reports with webview2
Posted: Sat Aug 20, 2022 02:37 PM

Continue the discussion