This topic is locked
[SOLVED]

 How to insert Print Button on View Page

2/26/2014 9:56:52 AM
PHPRunner General questions
A
Abul author

I would like to insert a PRINT button on order_view.php page. When user click on this PRINT button then it will use windows.print() to print the active whole view page. I inserted the button but I don't know how to code the button for action. Please help me. I just put this code on:

Client After

onclick="window.print();return false;"


Client before and server events are left empty. This is not working. Thanks in advance.

admin 2/26/2014

Simply use the following:

window.print();return false;
A
Abul author 2/26/2014



Simply use the following:

window.print();return false;



Thanks for quick reply. I did but it created another issue. My view page is in Modal Popup window. When I click on print button on the view page within the popup window, then it prints only visible contents from Modal popup window and parent window not only the whole content of the modal popup window. If I remove the Modal popup feature for view page then it prints whole contents of the view page but I don't want that. Please help me. Thanks again.