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

No PDF-Document via WebClient

1 Answer 122 Views
PDFViewer
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andreas Decke
Top achievements
Rank 1
Andreas Decke asked on 19 Feb 2012, 01:03 PM
Hello

i use PdfViewer in a RadWindow (V 2012.1.215.1050).
private void RadWindow_Loaded(object sender, System.Windows.RoutedEventArgs e)
 {
   WebClient client = new WebClient();     
   client.OpenReadCompleted+=client_OpenReadCompleted;
   client.OpenReadAsync(new Uri(GlobalPage.DocumentsFolderUrl + PdfDocument));
 }
 
 private void client_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
 {
   try
   {
     pdfViewer.DocumentSource = new PdfDocumentSource(e.Result);
   }
   catch (Exception exc)
   {
     Error.Show(exc, ErrorTitle);
   }
 }

the RadWindow opened shortly PDFViewer show the Busy-Image and my Application is hidden. After F5, the Application ready for run.
Host for the Document is the Web-Application. Url of Document (http://localhost/GlobalManager/Data/Documents/Sample.pdf) is OK.

1 Answer, 1 is accepted

Sort by
0
Kammen
Telerik team
answered on 20 Feb 2012, 05:00 PM
Hello Richard,

We will be better able to debug the issue if we have a project demonstrating the issue. Can you send us a sample project that shows the problem?

Regards,
Kammen
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
PDFViewer
Asked by
Andreas Decke
Top achievements
Rank 1
Answers by
Kammen
Telerik team
Share this question
or