-1

I retrieved data from two tables and view them successfully.I want to print them.print button also in the same form.Then how to call print function with these retrieved data.

Nishan
  • 1
  • 1

1 Answers1

0

If you want to print your view you can add this to your view:

 <button onclick="display()">Click to Print</button>
  <script>
     function display() {
        window.print();
     }
  </script>
 
Humza Faqi
  • 201
  • 2
  • 11