Background image wont export from Kendo

3 posts, 0 answers
  1. Congyuan
    Congyuan avatar
    32 posts
    Member since:
    Nov 2011

    Posted 11 Jul Link to this post

    Seems Kendo is still not able to export image/PDF with the background. Any idea about this?

    Dojo is here:  http://dojo.telerik.com/@jcbowyer/exuZi

  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 13 Jul Link to this post

    Hello Congyuan,

    Images can be exported only if the browser is able to load them during exporting via Ajax, or if CORS is allowed (which usually isn't). The following documentation section explains this:

    http://docs.telerik.com/kendo-ui/framework/drawing/drawing-dom#known-limitations

    In this particular case, the web server, which hosts the image, does not allow cross-domain Ajax requests and you will see an error in the browser console during export:

    Image from origin 'https://static.pexels.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://runner.telerik.io' is therefore not allowed access.

    Regards,
    Dimo
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
     
  3. Kendo UI is VS 2017 Ready
  4. Congyuan
    Congyuan avatar
    32 posts
    Member since:
    Nov 2011

    Posted 16 Jul in reply to Dimo Link to this post

    Thank you so much.Got you.
Back to Top