"Table head not found in directory" error

5 posts, 0 answers
  1. Philippe
    Philippe avatar
    14 posts
    Member since:
    May 2015

    Posted 29 Aug 2015 Link to this post

    I'm getting this error when I try to export to PDF (Scheduler). What I'm missing ?

    Thank you

     

  2. Philippe
    Philippe avatar
    14 posts
    Member since:
    May 2015

    Posted 30 Aug 2015 Link to this post

    Figure it out, the font path was wrong. 

     Could you please ​include better errors? "Table head not found" when a font isn't loaded correctly? 

  3. Kendo UI is VS 2017 Ready
  4. Mihai
    Admin
    Mihai avatar
    153 posts

    Posted 01 Sep 2015 Link to this post

    Hello,

    If the server properly returns a 404 HTTP status for URLs that cannot be resolved, you would get a good error message (something like "Cannot load URL: http://..." followed by "Cannot load font from http://...").

    However, if the status is 200 (which means "OK") then we do indeed try to parse the output, because we can't know it's an error message or a font file.  So I'm inclined to believe it's a server configuration issue.

    Regards,
    Mihai
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  5. Sangeetha
    Sangeetha avatar
    1 posts
    Member since:
    Jun 2016

    Posted 02 Jul in reply to Philippe Link to this post

    Can you just share your code where you missed that font path because i couldnt figure that out
  6. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 06 Jul Link to this post

    Hi Sangeetha,

    If needed, please compare your implementation with the following demo:

    http://demos.telerik.com/kendo-ui/scheduler/pdf-export

    It uses hard-coded font URLs from Kendo UI version from 2014. In production applications, it is recommended to use the font files that correspond to the actual Kendo UI version. For seamless upgrade, you can use something like this:

    kendo.pdf.defineFont({
        "DejaVu Sans"             : "//kendo.cdn.telerik.com/" + kendo.version + "/styles/fonts/DejaVu/DejaVuSans.ttf",
        "DejaVu Sans|Bold"        : "//kendo.cdn.telerik.com/" + kendo.version + "/styles/fonts/DejaVu/DejaVuSans-Bold.ttf",
        "DejaVu Sans|Bold|Italic" : "//kendo.cdn.telerik.com/" + kendo.version + "/styles/fonts/DejaVu/DejaVuSans-Oblique.ttf",
        "DejaVu Sans|Italic"      : "//kendo.cdn.telerik.com/" + kendo.version + "/styles/fonts/DejaVu/DejaVuSans-Oblique.ttf"
    });

    Please keep in mind that font files must be located on the same domain as the web page, or the host domain must allow cross-domain Ajax requests, and the browser must support them.

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

    In case you need further assistance, please provide a runnable test page in a Dojo.

    Regards,
    Dimo
    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps
Back to Top
Kendo UI is VS 2017 Ready