Reputation: 3209
I have an array of data and I have a print button, when someone hits the print button the print dialog box appears, can anyone suggest a tutorial to do this?
Thanks, J
Upvotes: 0
Views: 4619
Reputation: 4565
window.print();
from JavaScript will open the print dialogue for the current page.
To print only your array, you'll need to do several things:
onload="window.print();"
to the body tag of that view.Upvotes: 2
Reputation: 219824
To make the print dialog you need JavaScript:
window.print();
Upvotes: 5