Print Preview & Trusted Script

Hi, i have a schedule in a Iframe in one of our applications. All the functionality works fine except print. When i use the print button, schedule looks very different and there is an error in the console which is below


print-preview.bundle.js:15 This document requires 'TrustedScript' assignment.


Attachment: Print_77cb8816.zip

1 Reply

AK Ashokkumar Karuppasamy Syncfusion Team February 3, 2025 12:39 PM UTC

Hi Naveen Davuluri,

Thank you for reaching out us!

We have prepared a print sample and verified that everything is working as expected on our end. We have attached the sample below for your reference. Please review it. Based on the shared screenshot, this issue seems to be related to the window browser's print, and we have attached some links related to it below.

Sample: https://ej2.syncfusion.com/demos/#/tailwind3/schedule/print.html


1.            MDN Web Docs on Trusted Types: This page provides documentation on how to use Trusted Types to enforce security in your web app.

                https://developer.mozilla.org/en-US/search?q=Trusted%20Types

2.            W3C Trusted Types Specification: The official specification detailing Trusted Types API and its implementation.
               https://www.w3.org/TR/trusted-types/

3.           stack Overflow

            https://stackoverflow.com/questions/62081028/this-document-requires-trustedscripturl-assignment

These resources should help you resolve the issue related to 'TrustedScript' assignment and provide practical examples. Please try a suggestion let us know any further assistance.


Regards,
Ashok


Loader.
Up arrow icon