Print to pdf not working in chrome 77

Stimulsoft Dashboards.WEB discussion
Post Reply
investor123
Posts: 11
Joined: Fri Sep 20, 2013 4:18 am

Print to pdf not working in chrome 77

Post by investor123 » Tue Sep 17, 2019 3:36 am

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.
HighAley
Posts: 8065
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print to pdf not working in chrome 77

Post by HighAley » Tue Sep 17, 2019 7:43 pm

Hello.

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

Thank you.
investor123
Posts: 11
Joined: Fri Sep 20, 2013 4:18 am

Re: Print to pdf not working in chrome 77

Post by investor123 » Wed Sep 18, 2019 2:05 am

Thank you HighAley.
Cannot wait for the next version.
Andrew
Posts: 3867
Joined: Fri Jun 09, 2006 3:58 am

Re: Print to pdf not working in chrome 77

Post by Andrew » Wed Sep 18, 2019 7:08 am

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.
romulocpd
Posts: 71
Joined: Thu Oct 17, 2013 10:39 pm

Re: Print to pdf not working in chrome 77

Post by romulocpd » Fri Sep 20, 2019 5:13 pm

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!
HighAley
Posts: 8065
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print to pdf not working in chrome 77

Post by HighAley » Sat Sep 21, 2019 8:26 am

Hello.

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

Thank you.
investor123
Posts: 11
Joined: Fri Sep 20, 2013 4:18 am

Re: Print to pdf not working in chrome 77

Post by investor123 » Mon Sep 23, 2019 2:37 am

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
Attachments
gambar.jpg
gambar.jpg (51.18 KiB) Viewed 137 times
Lech Kulikowski
Posts: 1863
Joined: Tue Mar 20, 2018 5:34 am

Re: Print to pdf not working in chrome 77

Post by Lech Kulikowski » Mon Sep 23, 2019 7:38 am

Hello,

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

Thank you.
Post Reply