Could not view pdf files' content in radwindow after saving

7 posts, 1 answers
  1. Linh Hoang
    Linh Hoang avatar
    22 posts
    Member since:
    Dec 2009

    Posted 08 Jun 2015 Link to this post

    Hello everyone,

    After saving pdf files uploaded by AsyncUpload (using UploadedFile.SaveAs method), I could not view saved files' content in radwindow. However, if I changed the saved files with original files (have not been saved via AsyncUpload), the pdf files would be displayed properly in radwindow.

    Do you have any ideas about my issue?

  2. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 09 Jun 2015 Link to this post

    Hi Linh,

    To preview pdf files you need to have 3rd part plugin like Adobe PDF plugin. If you don't have installed additional software you can use Telerik's Silverlight Pdf Viewer.

    Regards,
    Hristo Valyavicharski
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Linh Hoang
    Linh Hoang avatar
    22 posts
    Member since:
    Dec 2009

    Posted 09 Jun 2015 in reply to Hristo Valyavicharski Link to this post

    Hi Hristo,

    I have Adobe reader installed. Actually, I can view the pdf files in radwindow but once the files are saved via AsyncUpload, radwindow is no longer able to display the uploaded files.

  5. Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 09 Jun 2015 Link to this post

    Be sure that you set the correct NavigateUrl which points to the uploaded pdf file. Note that this property may be lost after postback.

    Regards,
    Hristo Valyavicharski
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. Linh Hoang
    Linh Hoang avatar
    22 posts
    Member since:
    Dec 2009

    Posted 09 Jun 2015 in reply to Hristo Valyavicharski Link to this post

    Yes, I am sure that I set the correct NavigateUrl. I even store 2 same files in 1 folder (2 different names): one file is the original pdf document, another file is saved via AsyncUpload. They have the same size but when I put 2 NavigateUrl to RadWindow, only the original one works, the saved file is blank on RadWindow (this one is not damaged since I still can open it seperately by Adobe Reader). I tested several times with different pdf files but all ended up with this issue. 

  7. Answer
    Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 09 Jun 2015 Link to this post

    Can you access the file after it is uploaded?  Attach sample project.

    Thanks.

    Regards,
    Hristo Valyavicharski
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  8. Linh Hoang
    Linh Hoang avatar
    22 posts
    Member since:
    Dec 2009

    Posted 09 Jun 2015 in reply to Hristo Valyavicharski Link to this post

    HI Hristo,

    When I created the sample project, I found solution for my issue. The reason for my issue is that I tried to open pdf files by their physical path which is not allowed in RadWindow. For more details about this issue, please check out this thread: http://www.telerik.com/forums/opening-local-file

    Thank you very much for your support.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017