Click here to Skip to main content
15,888,984 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a link to a pdf file, I want to open the pdf in a c# winform with pdf component from syncfusion
C#
  var uri = 
NEW System.Uri"https://archive.org/download/adventuresofoli00dick/adventuresofoli00dick_bw.pdf");
System.Net.HttpWebRequest webRequest = (HttpWebRequest)WebRequest.Create(uri);
HttpWebResponse webResponse = (HttpWebResponse)webRequest.GetResponse();
Stream reqStr = webResponse.GetResponseStream();
PdfLoadedDocument loadedDocument = new PdfLoadedDocument(reqStr);
pdfViewerControl1.Load(loadedDocument);


when run no error but no pdf is loaded in to viewer, any sugest?

What I have tried:

Above code no runtime error but no document loaded
Posted
Comments
[no name] 21-Feb-17 12:50pm    
Well I would guess that you get no error because your code wouldn't compile. And what did syncfusion technical support tell you when you talked to them about your problem?
Member 3892343 22-Feb-17 1:55am    
I didn't contact them yet, but is there any other Free component for pdf viewing without the need adobe reader to be installed?
[no name] 22-Feb-17 11:34am    
I wouldn't know. That is what google was invented for.
Member 3892343 23-Feb-17 1:33am    
foumd an answer, it was geting 0 lenght of the file.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900