Page 1 of 1

Print to pdf not working in chrome 77

Posted: Tue Sep 17, 2019 3:36 am
by investor123
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.

Re: Print to pdf not working in chrome 77

Posted: Tue Sep 17, 2019 7:43 pm
by HighAley
Hello.

We know about the issue in Chrome 77.
It is already solved. The fix will be included in our next build.

Thank you.

Re: Print to pdf not working in chrome 77

Posted: Wed Sep 18, 2019 2:05 am
by investor123
Thank you HighAley.
Cannot wait for the next version.

Re: Print to pdf not working in chrome 77

Posted: Wed Sep 18, 2019 7:08 am
by Andrew
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.

Re: Print to pdf not working in chrome 77

Posted: Fri Sep 20, 2019 5:13 pm
by romulocpd
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!

Re: Print to pdf not working in chrome 77

Posted: Sat Sep 21, 2019 8:26 am
by HighAley
Hello.

We are working hard on our new build with the fix.
It will be available next week.

Thank you.

Re: Print to pdf not working in chrome 77

Posted: Mon Sep 23, 2019 2:37 am
by investor123
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

Re: Print to pdf not working in chrome 77

Posted: Mon Sep 23, 2019 7:38 am
by Lech Kulikowski
Hello,

We couldn't reproduce that issue. Please provide more detailed information.

Thank you.