Declined
Last Updated: 11 Jul 2023 17:26 by ADMIN
Aditya
Created on: 05 Jul 2023 10:48
Category: UI for Blazor
Type: Bug Report
0
Getting Error in pdf-jpg-export-js Approach

Hi Team,

I was implemeting the approach mentioned in the below URL in my Blazor .Net Project

https://github.com/telerik/blazor-ui/tree/master/common/pdf-jpg-export-js

B
ut getting this error while execution, can someone please look into this or help me.

Microsoft.JSInterop.JSException: Could not find 'telerikClientExporter.exportPDF' ('telerikClientExporter' was undefined).
Error: Could not find 'telerikClientExporter.exportPDF' ('telerikclientexporter' was undefined).

 

Attached Files:
1 comment
ADMIN
Hristian Stefanov
Posted on: 11 Jul 2023 17:26

Hi Aditya,

Thank you for sharing such detailed information regarding the issue you are currently facing.

Based on the error message provided in the screenshot, it appears that the error is likely caused by the absence of the "telerikInterop.js" file or its incorrect registration as a script, rather than being a bug.

To resolve this, please follow the steps below:

  1. Open the "wwwroot" directory and ensure that the "telerikInterop.js" file is present in that location.
  2. Open the "index.html" file located in the "wwwroot" directory and confirm that the "telerikInterop.js" file is registered using the following line of code:
    <script src="telerikInterop.js"></script>
    Please note that if you are using a Server-side project, you should move the above script into the "_Host.cshtml" file instead of the "index.html".

If you have followed the above steps and the error still persists, please don't hesitate to reach out to me for further assistance. At this moment, I'm updating the status and will remain available to help you.

Regards,
Hristian Stefanov
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.