This is a migrated thread and some comments may be shown as answers.

Could not view pdf files' content in radwindow after saving

6 Answers 98 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Linh Hoang
Top achievements
Rank 1
Linh Hoang asked on 09 Jun 2015, 04:38 AM

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?

6 Answers, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 09 Jun 2015, 06:31 AM
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
0
Linh Hoang
Top achievements
Rank 1
answered on 09 Jun 2015, 06:54 AM

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.

0
Hristo Valyavicharski
Telerik team
answered on 09 Jun 2015, 08:40 AM
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
0
Linh Hoang
Top achievements
Rank 1
answered on 09 Jun 2015, 11:15 AM

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. 

0
Accepted
Hristo Valyavicharski
Telerik team
answered on 09 Jun 2015, 11:36 AM
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
0
Linh Hoang
Top achievements
Rank 1
answered on 10 Jun 2015, 03:00 AM

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.

Tags
AsyncUpload
Asked by
Linh Hoang
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Linh Hoang
Top achievements
Rank 1
Share this question
or