-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generating a report with Ajax #20
Comments
@hitostacha Can you provide a source code to this issue? |
On frontend side set responseType: 'arraybuffer' , and add to url param
|
@skortabeast are you retrieving the Stream of the PDF as a normal string or a encoded base64 string? |
Also, are you displaying the PDF document or downloading it?
|
@hitostacha downloading it, and |
I have the same issue, im getting ajax response stream() but it show a bunch of symbols and letters so I think im not handling correctly the ajax response to display de pdf stream, Im using this code inside my done function var pdfWin= window.open("data:application/pdf;base64, " + data, '', 'height=650,width=840'); It opens a new windows but just print this code: |
Can I generate a report with an Ajax request?
I'm using JQuery's ajax method to pass the data to my controller, it gets to the server but the response is odd, is there a way to generate the report in a pop-up window o a blank window?
The text was updated successfully, but these errors were encountered: