For some reason when I try to produce a report and output it as a pdf file and then attempt to save the output pdf file on my local computer it will only save it as a php file. Has something changed
Thanks for the Enquiry.
I cant see any changes in the program that should affect this and it seems to work for me however it could be a browser related issue. Can you tell me what Operating System you are using (Windows 7, Linux?) and what browser you are using and I can try to simulate.
I dont know if you are up for experimenting with some code but if I edit the file swoutput.php in the main reportico folder and comment out lines 1100-1103 I can recreate your problem. So Im not sure if something is happening to the headers that identify it as PDF output. If you are ok with this this then you might want to change :-
Hi
Thanks for the Enquiry.
I cant see any changes in the program that should affect this and it seems to work for me however it could be a browser related issue. Can you tell me what Operating System you are using (Windows 7, Linux?) and what browser you are using and I can try to simulate.
I dont know if you are up for experimenting with some code but if I edit the file swoutput.php in the main reportico folder and comment out lines 1100-1103 I can recreate your problem. So Im not sure if something is happening to the headers that identify it as PDF output. If you are ok with this this then you might want to change :-
if ( get_request_item("target_attachment", "" ) )
header('Content-Disposition: attachment; filename=reportico.pdf');
else
header('Content-Disposition: inline; filename=reportico.pdf');
to just
header('Content-Disposition: attachment; filename=reportico.pdf');
Failing that tell me the operating system version and browser and I'll see If I can reproduce your problem.
Peter