-
Notifications
You must be signed in to change notification settings - Fork 28
Update troubleshooting-telerikreportviewer-execcommand-javascript-err… #1977
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @@ -24,13 +24,152 @@ When I try to print a report using any of the [HTML5-based Report Viewers]({%slu | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KB articles of type "Troubleshooting" must also explain the cause when it is known. As you provide two solutions, I guess you know the cause and can describe it here. See Troubleshooting Scenarios and the Troubleshooting KB template.
|
|
||
| ## Solution | ||
|
|
||
| ### For a Browser |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Make sure that both headings have an identical grammatical structure, as currently they aren't parallel.
- For a better form, list the two solutions under the
## Solutionsheading and link each of them to its section.
| ### For a Browser | |
| You can resolve the problem in either of the following ways: | |
| * [By configuring the browser](#configuring-the-browser) | |
| * [By creating an Endpoint](#creating-an-endpoint) | |
| ### Configuring the Browser |
|
|
||
|  | ||
|
|
||
| ### By Creating an Endpoint |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ### By Creating an Endpoint | |
| ### Creating an Endpoint |
|
|
||
| ### By Creating an Endpoint | ||
|
|
||
| Use the [printBegin(e, args)]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/api-reference/reportviewer/events/printbegin(e,-args)%}) event to manually handle scenarios where the user has configured their PDF document settings to Download PDFs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Use the [printBegin(e, args)]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/api-reference/reportviewer/events/printbegin(e,-args)%}) event to manually handle scenarios where the user has configured their PDF document settings to Download PDFs. | |
| Use the [`printBegin(e, args)`]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/api-reference/reportviewer/events/printbegin(e,-args)%}) event to manually handle scenarios where the user has configured the browser's PDF document settings to download PDFs. | |
|
|
||
| Use the [printBegin(e, args)]({%slug telerikreporting/using-reports-in-applications/display-reports-in-applications/web-application/html5-report-viewer/api-reference/reportviewer/events/printbegin(e,-args)%}) event to manually handle scenarios where the user has configured their PDF document settings to Download PDFs. | ||
|
|
||
| There is no direct JavaScript API to check this setting. However, the [navigator.pdfViewerEnabled](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/pdfViewerEnabled) property toggles between true and false when the setting changes. To handle scenarios where the PDF viewer is disabled, you can create a custom endpoint for rendering reports as PDFs, following the approach described in the [Exporting a report to PDF Programmatically]({%slug exporting-a-report-to-pdf-programmatically%}) article in Telerik Reporting. This endpoint is invoked manually whenever the PDF viewer is disabled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| There is no direct JavaScript API to check this setting. However, the [navigator.pdfViewerEnabled](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/pdfViewerEnabled) property toggles between true and false when the setting changes. To handle scenarios where the PDF viewer is disabled, you can create a custom endpoint for rendering reports as PDFs, following the approach described in the [Exporting a report to PDF Programmatically]({%slug exporting-a-report-to-pdf-programmatically%}) article in Telerik Reporting. This endpoint is invoked manually whenever the PDF viewer is disabled. | |
| There is no direct JavaScript API to control this setting. However, the [`navigator.pdfViewerEnabled`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/pdfViewerEnabled) property toggles between `true` and `false` when the setting changes. To handle scenarios where the PDF viewer is disabled, you can create a custom endpoint for rendering reports as PDFs, following the approach described in the [Exporting a report to PDF Programmatically]({%slug exporting-a-report-to-pdf-programmatically%}) article in Telerik Reporting. This endpoint is invoked manually whenever the PDF viewer is disabled. | |
…or.md