Skip to main content

Hi,    I have files saved in /file-asset/ which I need in window.print() but somehow the print opens up and blocks the images.    I wanted to know the reason for this. Is it from browser side or salesforce side? Do we have solution to resolve this issue or it will go as known limitation.   

4 Antworten
  1. Jeff Weller (PARQA Inc.) Forum Ambassador
    5. Feb., 13:06

    Yes, it is definitely possible to include these images in the print. Since enabling 'Background Graphics' didn't resolve it, the issue is how the browser handles Salesforce's secure URLs during printing.

    I suggest we implement one of the following fixes---->

    Base64 Encoding (Best Solution)--> We convert the image into a data string directly in the code. This embeds the image into the page so the browser doesn't have to 'fetch' it, ensuring it appears every time.

    Static Resources---> Moving the images to Static Resources makes them more accessible to the browser's print engine compared to /file-asset.

0/9000