[SOLVED] Â print from view page |
9/17/2017 10:25:43 AM |
PHPRunner General questions | |
![]() Hi I have added a button on view page which I want to redirect to that record's print page. how can i do that? |
|
![]() |
Admin 9/18/2017 |
What if you just print this View page? |
![]() |
Admin 9/18/2017 |
Add Custom CSS that hides buttons and other View page stuff while printed. See good examples at https://benfrain.com/create-print-styles-using-css3-media-queries/ |
![]() |
loveuppal author 9/19/2017 |
Add Custom CSS that hides buttons and other View page stuff while printed. See good examples at https://benfrain.com/create-print-styles-using-css3-media-queries/ Another option is to teach printer friendly page understand parameters passed via URL. Most likely you will need to use 'Print page: Before SQL Query' event for this purpose.
|
![]() |
Admin 9/19/2017 |
There is no such thing as getcurrentrecord() on printer-friendly page. |
![]() |
loveuppal author 9/19/2017 |
There is no such thing as getcurrentrecord() on printer-friendly page. You need to read parameters from the URL and modify WHERE clause (strWhereClause variable) so it only points to that single record. When you proceed to this event in PHPRunner in Event Editor you can find more info about parameters.
|