big PDF to iframe not working
This is working for small PDFs:
myThis.$refs.reportFrame.src = res.toDataURI()
It's not working for large ones. Instead, the iframe I'm putting it in becomes empty. I tried to use
myThis.$refs.reportFrame.outerHTML = res.toString()
instead, but that doesn't work. I guess the toString function doesn't work on PDFs - and that makes sense. Is there another way I can send a PDF to an iframe?
I'm now getting this error: URIError: URI malformed
The download code is working:
res.download(request.data.reportInfo.reportName + '-' + request.data.reportInfo.locationAbbr + '.pdf')
But I really want to display in my iframe if possible.
here in the docs https://jsreport.net/learn/browser-client#large-report-file there is the explanation why it does not work for big files, and also how to make it work by using
Thanks that worked. I'm not sure how I missed that part of the docs.