Errore with PDF Report : TCPDF ERROR

Hi all,

I’m using a W10 as dev environment and I got issue with a pdf report that give a Unable to create output file error.
It was long time that I didn’t check it but now this issue has rise up.
Any hints will be appreciated because I’ve tried all possible variations without successs. I set also, within setting tab, the absolute path as destination on Server .
I remember there were many issues with Linux due to grants etc. of pdf folders… but, being under ms dos , I suppose that they are not present.
I don’t believe it could be a file name or file path issue but I’m expecting you experts will give me the right suggestions.

TCPDF ERROR: Unable to create output file: C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\app\eos_service\pdfreport_ticket/Rapportino40/2019.pdf

I used also this string but no way either using / or \ .
[path_file] = getcwd();
[path_rapportino] = “[path_file]” . “/”. “[Rapportino_file_name]”;

Thanks

Is that slash part of the “rapportino file name?” or is 2019.pdf your final file name?

Setting Pdf Destination → Server
PDF path :
Without specifing the Pdf path it work on my PC

If instead I set PDF path : [path_rapportino] it gives me the error.

echo like following

[Rapportino_file_name]=“Rapportino”.{id_ticket}.".pdf";
[path_file] = getcwd();
[path_rapportino] = “[path_file]” . “/”. “[Rapportino_file_name]”;
echo [Rapportino_file_name] . " === " . [path_rapportino];

This is the result.

Now I see that name (the id of ticket is made by nr/year) of file has a “/” inside the name , that could be the issue on the path I’m facing.
How can I substitute it with a “-” before to create the name of pdf file name ?

I changed name like this and now it seems to work better ;-))

[New_id_ticket]= explode(’/’,{id_ticket});
//echo [New_id_ticket][0] . " | " . [New_id_ticket][1] ;
[Rapportino_file_name]=“Rapportino_” . [New_id_ticket][0] . “-” . [New_id_ticket][1]. “.pdf”;

Rapportino_40-2012.pdf === C:\Program Files\NetMake\v9-php73\wwwroot\scriptcase\app\eos_service\pdfreport_ticket/Rapportino_40-2012.pdf

That is what I was getting at…that slash in there. Glad you figured it.