Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Tax report PDF file extension missing
07-19-2017, 01:59 AM
Post: #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.
Find all posts by this user
Quote this message in a reply
07-19-2017, 03:56 AM
Post: #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
Visit this user's website Find all posts by this user
Quote this message in a reply
07-19-2017, 04:50 AM
Post: #3
RE: Tax report PDF file extension missing
Solved. Thanks Tim.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)