Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tax report PDF file extension missing
07-19-2017, 01:59 AM,
#1
Tax report PDF file extension missing
Hi all,

When I generate a PDF tax report from Tax.php, the resultant file downloaded has no file extension.

I am guessing that the relevant piece of code in Tax.php is:

Code:
$pdf->OutputD($_SESSION['DatabaseName'] . '_Tax_Report_' . Date('Y-m-d'));

Can anyone help with fixing this?

Andy.
https://www.linkedin.com/in/andrewcouling
Reply
07-19-2017, 03:56 AM,
#2
RE: Tax report PDF file extension missing
Change this line to:

$pdf->OutputD($_SESSION['DatabaseName'] . '_Tax_Report_' . Date('Y-m-d') . '.pdf');

Thanks
Tim
Reply
07-19-2017, 04:50 AM,
#3
RE: Tax report PDF file extension missing
Solved. Thanks Tim.
https://www.linkedin.com/in/andrewcouling
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)