Last Updated: 21 Jan 2020 11:04 by ADMIN
Created on: 17 Jan 2020 14:13
Type: Bug Report
Print doesn't work in React application

Print functionality doesn't work in React application.

Steps to reproduce:

1. You may use the sample project from How to use HTML5 Report Viewer in React Application article.

2. Run the project and click on Print.

The following error can be seen in the browser's console: Resource interpreted as Document but transferred with MIME type application/pdf: "https://demos.telerik.com/reporting/api/reports/clients/a7fdd020ec4/instances/3f53abd1614/documents/c3923e685e6d6ebefb3d11?response-content-disposition=inline".

1 comment
Posted on: 21 Jan 2020 11:04


As a workaround,  you can set the FORCE_PDF_FILE  printMode option of the report viewer, the widget will always export the report document to a PDF file with the special print script:

. . .
   printMode: 'FORCE_PDF_FILE',
. . .


Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items