Click here to Skip to main content
15,900,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have one windows form with C#. I want to show PDF file to be shown on that page which is on server, but I am not able to do so because it gives me messege that the page can not be displayed. But I am able to browse that image file from my local system as I have shared that file on from server to my system.
Code to show file
WebBrowser1.Navigate(@'file://webserver\UserDocs\abc.jpg');

I think this forward and backward slash does not make issue because if same i am typing in my local browser it works but not from my app.

Thanks in advamce

What I have tried:

Code to show file
WebBrowser1.Navigate(@'file://webserver\UserDocs\abc.jpg');
Posted

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