I need to print a receipt for a school project I'm working on. I'm trying to print the page which contains this receipt by using window.print(). Only when I press the print button it doesn't print anything and just gives me a blank PDF
<div id='bon_overzicht'>
                 <table id='bon'>
                      <thead>
                           <tr>
                                <th>Product</th>
                                <th>Aantal</th>
                                <th>Prijs p/s</th>
                                <th>Totaal</th>
                           </tr>
                      </thead>
                      <tbody>   <tr>
                                <td>Biefstuk in champignonsaus</td>
                                <td>2</td>
                                <td>€ 11,95</td>
                                <td>€ 23,90</td>
                           </tr>   <tr>
                                <td>Chocolademousse</td>
                                <td>3</td>
                                <td>€ 4,95</td>
                                <td>€ 14,85</td>
                           </tr>   <tr>
                                <td>Groentesoep</td>
                                <td>1</td>
                                <td>€ 3,95</td>
                                <td>€ 3,95</td>
                           </tr>   <tr>
                                <td>Aspergesoep</td>
                                <td>3</td>
                                <td>€ 4,95</td>
                                <td>€ 14,85</td>
                           </tr>   <tr>
                                <td>Bonengerecht met diverse groen</td>
                                <td>1</td>
                                <td>€ 11,95</td>
                                <td>€ 11,95</td>
                           </tr>   <tr>
                                <td>Per glas</td>
                                <td>1</td>
                                <td>€ 3,95</td>
                                <td>€ 3,95</td>
                           </tr>   <tr>
                                <td>Koffie verkeerd</td>
                                <td>3</td>
                                <td>€ 2,95</td>
                                <td>€ 8,85</td>
                           </tr>   <tr>
                                <td>Portie kaas met mosterd</td>
                                <td>1</td>
                                <td>€ 4,00</td>
                                <td>€ 4,00</td>
                           </tr><tr class='trBold'>
                                <td>TOTAALPRIJS</td>
                                <td colspan='3'>€ 86,30</td>
                           </tr>
                      </tbody>
                 </table>
            </div>
How do I make sure this DIV gets printed? Any help would be appreciated.
 
    