Hello,
I'm having a problem generating a report with jasper reports in spring.
I made the implementation exactly as it appears in method 4 of this explanation: link
When I click the button to generate the report, I'm redirected to the link as @RequestMapping and the browser loads the report into the browser's built-in pdf reader .. then the problem starts ..
On the desktop, as browsers have the built-in pdf reader, it is loaded but when I save it, the file does not even have a defined name (it always remains as document.pdf).
If I try to generate this same report for a mobile phone (I'm testing on an android), the pdf reader that is installed is opened and then the error saying that the format is not supported. When I force a download of the link, an unformatted file is downloaded (if I put the .pdf extension in the file it normally opens).
I can change something in this implementation so that when I click the button to generate the report, it is directed directly to the generated .pdf file so that it works on both the desktop and the mobile or in that case I have to do a more " (like the link method 1) (which I think should work because it defines the name and type of the direct file in the response)?
vlw!