Re: How to create a Single Record Report with join clause
Posted: Wed Jun 12, 2019 12:59 pm
if for example you just want to have prefilled file name you can do following:
Make back-up of the nurunpdf.php file.
in the nurunpdf.php replace some code as following:
next we can progess with reading actual customer name - but before that - I need to understand very clearly your needs.
Make back-up of the nurunpdf.php file.
in the nurunpdf.php replace some code as following:
Code: Select all
replace:
$PDF->Output('nureport.pdf', 'I'); (normally it's line 54)
with 4 lines as following:
$customer='Patricia';
$date = date('Y-m-d_H-i-s');
$file_name= 'Report_'.$customer.$date.'.pdf';
$PDF->Output($file_name, 'I');