This topic is locked

Print page in Popup

10/19/2017 2:18:37 PM
PHPRunner General questions
G
GregJ author

PHPR 9.8 printing Master / Details. Is there a way to redirect the print friendly page including details to a popup instead of opening in a new browser tab? I can open Test_print.php in a popup but it lists without the details.

T
thudsen 10/19/2017

I think it is impossible to print from a pop up - it'll include whats behind the pop up too. You could add an additional button to open the view/print page in a new window/tab. Some helpful instructions on this post from this year

G
GregJ author 10/19/2017



I think it is impossible to print from a pop up - it'll include whats behind the pop up too. You could add an additional button to open the view/print page in a new window/tab. Some helpful instructions on this post from this year


No problem to get it to print master and details in a second tab except that my users are getting lost and don't know how to get back to the main tab after they have printed. Printing the View page is a nightmare because of all the 'unprintable' crap in the view page (Bootstrap). Chrome just chokes on it.
I can redirect Test_print.php to a popup and print from there using a javascript button but I can't get the details to show up in the popup like they do on the print page.

T
thudsen 10/20/2017



No problem to get it to print master and details in a second tab except that my users are getting lost and don't know how to get back to the main tab after they have printed. Printing the View page is a nightmare because of all the 'unprintable' crap in the view page (Bootstrap). Chrome just chokes on it.
I can redirect Test_print.php to a popup and print from there using a javascript button but I can't get the details to show up in the popup like they do on the print page.


I've used the invoice template for this. Works well

G
GregJ author 10/20/2017



I've used the invoice template for this. Works well


Yes, I have the Invoice template too but everything changes when you are using Bootstrap templates.

G
GregJ author 10/22/2017

Test_print.php running stand-alone displays Master record only. Print button on list page displays Master / details correctly in new browser tab.

Is it possible to add parameters to the Test_print.php URL to show the details as well?

Still trying to print from a popup vs new browser tab.