Here is what I did
replaced
function OutputI($DocumentFilename = 'Document.pdf') {
if (($DocumentFilename == null) or ($DocumentFilename == '')) {
$DocumentFilename = _('Document.pdf');
}
$this->Output($DocumentFilename,'I');
}
function OutputD($DocumentFilename = 'Document.pdf') {
if (($DocumentFilename == null) or ($DocumentFilename == '')) {
$DocumentFilename = _('Document.pdf');
}
$this->Output($DocumentFilename,'D');
}
With
function OutputF($DocumentFilename = 'Document.pdf') {
if (($DocumentFilename == null) or ($DocumentFilename == '')) {
$DocumentFilename = _('Document.pdf');
}
$this->Output('/weberp/App_Data/print/' . $DocumentFilename, 'F');
I keep getting 500 error I have changed the permissions on the server folder thinking that may be the problem so I think it may be the path
The url is
http://XXX.15.3.139/weberp I have tried the above and also /App_Data/print/ any help would be greatly appreciated.