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.
Asked
Active
Viewed 39 times
-1
-
check here https://stackoverflow.com/a/6500966/4575350 – STA Jun 27 '20 at 10:39
-
Not clear to me what you want – A.A Noman Jun 27 '20 at 10:55
-
I searched that.If I can transfer data from page to another blade I am OK.but still not a clue.. thanks – Nishan Jun 27 '20 at 10:56
-
I retrieved data and view the in a table.Simply now I want to print them using a PRINT button. – Nishan Jun 27 '20 at 11:00
1 Answers
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