jQWidgets Forums

jQuery UI Widgets Forums Grid Export Data to PDF from jqxGrid failed ?

This topic contains 3 replies, has 2 voices, and was last updated by  kamelot 9 years, 7 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Export Data to PDF from jqxGrid failed ? #75951

    kamelot
    Participant

    I’m exporting my grid data into pdf, like in this demo example : http://www.jqwidgets.com/jquery-widgets-demo/demos/jqxgrid/#demos/jqxgrid/dataexport.htm.
    I was able to download it successfully but I got the warning

    “Resource interpreted as Document but transferred with MIME type application/octet-stream: “https://localhost/save-file”
    jqxgrid-all.js?bust=1442521930240:732

    and when I tried to open the PDF, it was blank with “Failed to load PDF document”.

    anyone bumped into this before and any suggestion to fix this ?

    Thank you so much.

    Export Data to PDF from jqxGrid failed ? #75959

    Peter Stoev
    Keymaster

    Hi kamelot,

    No and we are not aware what jqxgrid-all.js is, because this is not a file created by jQWidgets.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Export Data to PDF from jqxGrid failed ? #75987

    kamelot
    Participant

    Thanks Peter for replying,

    I figured the “Resource interpreted as Document but transferred with MIME ……” thing is just Chrome’s problem, it was a regular message and not an error or anything.

    I got the same message when I exported the CSV and JSON; however, I was able to open them just fine. So this message is not the reason why PDF file is corrupted after being exported (Failed to load PDF document) 🙁 , any help to solve this would be very appreciated !!!

    Cheers,
    Kamelot.

    Export Data to PDF from jqxGrid failed ? #75991

    kamelot
    Participant

    Well, downloading the newest version jqwidgets-3.8.2 fixed it 😀 (been using 3.5.0 for a while). Though some columns got messed up, somehow the data in those column was replaced by 9/18/15 lol.

    The limitation of this pdf export is that I can’t choose the page orientation to be landscape. I do really hope the developer team will consider to implement this in the future (Please please !! :)). I’m sure a lot of data table is in need of landscape mode.

    Thanks,
    Kamelot

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.