Print to pdf not working in chrome 77
-
- Posts: 24
- Joined: Fri Sep 20, 2013 4:18 am
Print to pdf not working in chrome 77
Dear,
I have problem after update my chrome to version 77. Then button print to pdf not working again, is it a bug? or i miss to set something?
I am trying using mozilla firefox and still okay.
I have problem after update my chrome to version 77. Then button print to pdf not working again, is it a bug? or i miss to set something?
I am trying using mozilla firefox and still okay.
Re: Print to pdf not working in chrome 77
Hello.
We know about the issue in Chrome 77.
It is already solved. The fix will be included in our next build.
Thank you.
We know about the issue in Chrome 77.
It is already solved. The fix will be included in our next build.
Thank you.
-
- Posts: 24
- Joined: Fri Sep 20, 2013 4:18 am
Re: Print to pdf not working in chrome 77
Thank you HighAley.
Cannot wait for the next version.
Cannot wait for the next version.
Re: Print to pdf not working in chrome 77
Hello,
Thank you for the request.
Workarounds
The new version of Chrome 77 removed the ability to automatically print a PDF file. Perhaps this is a bug in Chrome 77 and will be fixed in the next version. We are looking for solutions to the problem on the current version of the product. At this moment, you can use HTML printing (Print without Preview), or use the following workaround for PDF printing - put this small JavaScript code on the viewer page after initializing it. The variable jsStiWebViewer1 is the "js" + component ID.
```
<script>
jsStiWebViewer1.printAsPdf = function (url, data) {
jsStiWebViewer1.printAsPdfPopup(data);
}
</script>
```
Solution for JS
in the file stimulsoft.reports.js replace the line
```
if(t.indexOf("Chrome")>=0)return"Chrome";
```
on
```
if(t.indexOf("Chrome")>=0)return"Safari";
```
There will still be no automatic printing with these solutions, just the PDF file will start to open in a new browser tab, where you can click on "Print" in the PDF file.
Other solution is to revert back to Chrome 76.
The issue is solved and the fix will be available in the next version 2019.3.6.
Please let me know if you have additional questions.
Thank you.
Thank you for the request.
Workarounds
The new version of Chrome 77 removed the ability to automatically print a PDF file. Perhaps this is a bug in Chrome 77 and will be fixed in the next version. We are looking for solutions to the problem on the current version of the product. At this moment, you can use HTML printing (Print without Preview), or use the following workaround for PDF printing - put this small JavaScript code on the viewer page after initializing it. The variable jsStiWebViewer1 is the "js" + component ID.
```
<script>
jsStiWebViewer1.printAsPdf = function (url, data) {
jsStiWebViewer1.printAsPdfPopup(data);
}
</script>
```
Solution for JS
in the file stimulsoft.reports.js replace the line
```
if(t.indexOf("Chrome")>=0)return"Chrome";
```
on
```
if(t.indexOf("Chrome")>=0)return"Safari";
```
There will still be no automatic printing with these solutions, just the PDF file will start to open in a new browser tab, where you can click on "Print" in the PDF file.
Other solution is to revert back to Chrome 76.
The issue is solved and the fix will be available in the next version 2019.3.6.
Please let me know if you have additional questions.
Thank you.
-
- Posts: 73
- Joined: Thu Oct 17, 2013 10:39 pm
- Location: Nova Friburgo, Rio de Janeiro, Brasil
Re: Print to pdf not working in chrome 77
Hello.
When next version will be launched?
I bought today 2019.3.5 to solve this problem.
I've tried solution above but nothing... I receve same message:
Resource interpreted as Document but transferred with MIME type application/pdf: "blob:http://localhost:50481/a5925449-f842-4d ... f77fb0b0cf".
Help me!
When next version will be launched?
I bought today 2019.3.5 to solve this problem.
I've tried solution above but nothing... I receve same message:
Resource interpreted as Document but transferred with MIME type application/pdf: "blob:http://localhost:50481/a5925449-f842-4d ... f77fb0b0cf".
Help me!
Re: Print to pdf not working in chrome 77
Hello.
We are working hard on our new build with the fix.
It will be available next week.
Thank you.
We are working hard on our new build with the fix.
It will be available next week.
Thank you.
-
- Posts: 24
- Joined: Fri Sep 20, 2013 4:18 am
Re: Print to pdf not working in chrome 77
I am sorry,
I have one question again. When i use right click on the text square for example. The stimulsoft pop up menu covered by chrome pop up, so i must click escape button first to remove the chrome pop up. Image in attachment.
Thank you
I have one question again. When i use right click on the text square for example. The stimulsoft pop up menu covered by chrome pop up, so i must click escape button first to remove the chrome pop up. Image in attachment.
Thank you
- Attachments
-
- gambar.jpg (51.18 KiB) Viewed 3403 times
-
- Posts: 6266
- Joined: Tue Mar 20, 2018 5:34 am
Re: Print to pdf not working in chrome 77
Hello,
We couldn't reproduce that issue. Please provide more detailed information.
Thank you.
We couldn't reproduce that issue. Please provide more detailed information.
Thank you.