This topic is locked
[SOLVED]

 Printing view page

10/4/2010 4:00:12 AM
PHPRunner General questions
S
smith author

Is it possible to print view page. I would like to print after records saved in add page and automatically redirect to view page and print the view page.

I know that i can redirect the add page after save to view page, what about printing the view page
thanks

smith

T
Tempus_Erus 10/4/2010



Is it possible to print view page. I would like to print after records saved in add page and automatically redirect to view page and print the view page.

I know that i can redirect the add page after save to view page, what about printing the view page
thanks

smith


Hi,
I am assuming you want the format of the view page?
You could try creating a HTML button using a little CSS. If you apply the 'class' to the HTML button it dosn't print out - when you print. Code can be inserted on the Vierw editor page of PHP Runner.
body {visibility:visible;}

.printbutton {visibility:hidden;}
Hope this helps.
A

S
smith author 10/4/2010

Thank you,

Please advice me how to hide the "back to list" and other buttons.

Thanks

Smith



Hi,
I am assuming you want the format of the view page?
You could try creating a HTML button using a little CSS. If you apply the 'class' to the HTML button it dosn't print out - when you print. Code can be inserted on the Vierw editor page of PHP Runner.
body {visibility:visible;}

.printbutton {visibility:hidden;}
Hope this helps.
A

A
ann 10/5/2010

Smith,
use Before display event on the Events tab to hide buttons:

$xt->assign("back_button",false);
S
smith author 10/5/2010

Thank you Ann,

But here I would like to display the buttons and it should not appear on print.

I have achieved by using the following script
<STYLE type=text/css media=print>

.donotprint {

display: none;

}

</STYLE>
then wherever I want to hide I added
<DIV class=donotprint> .....content.......... </DIV>

for example

<DIV class=donotprint>{BEGIN body}{$header} </DIV>
This allowed me to display everything in the view page but limit the area while printing.
Thanks

Smith.



Smith,
use Before display event on the Events tab to hide buttons:

$xt->assign("back_button",false);