This topic is locked

Window Print

7/1/2010 3:53:10 PM
PHPRunner General questions
D
ddefrain author

Hi.

Is it possible to print the whole window with the data after/before record added?; i don't need a report, just send the window to printer with the data on it.
I put the following javascript after and before the record added; the whole window prints just fine but without the data and need the whole window printed with the information typed.

echo "<script>javascript:window.print()</script>";


Note: I only have an add page...<<no edit page>>; <<no list page>>.
Thanks in advance.

A
ann 7/2/2010

Hi,
unfortunately, there is no way to do it in the events, you need to create button (or link) manually on the Visual Editor tab to print the page.

D
ddefrain author 7/2/2010



Hi,
unfortunately, there is no way to do it in the events, you need to create button (or link) manually on the Visual Editor tab to print the page.


Hi Ann; Thanks for the reply.

Forgot to mention i've already use a button.
Another thing that i was thinking; is it possible when the record is added not to "clear" the submitted info in the add page?; so when i use the javascript

echo "<script>javascript:window.print()</script>";


Just for testing if that one prints the window with the data on it.
Thanks in advance.

S
swanside 7/3/2010

It might not be the correct way, but you could do a screen print, open wordpad and paste it in, then print from there? Or have you tried in your IE to do a file and Print

A
ann 7/5/2010

Hi,
I would recommend you to add redirection to the view page in the After record added event on the Events tab.

Then you can create print button on the view page.