Click here to Skip to main content
15,937,127 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
download Coe code of pdf file with c #

[Edited]Corrected spelling[/Edited]
Posted
Updated 10-Nov-11 19:14pm
v2
Comments
koolprasad2003 10-Nov-11 1:07am    
wht you exactly want ? create a PDF file or download already created file.
soniya sangal 10-Nov-11 6:01am    
download already created file.
Sergey Alexandrovich Kryukov 11-Nov-11 0:40am    
What is "coe"?!!
--SA

Is this downloading by client part? Simple:

HTML
<a src="files/myDocument.pdf">Download document here</a>


Server part? FTP? HTTP? Depending on protocol, you can use the class System.Net.FtpWebRequest or System.Net.HttpWebRequest, see:
http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx[^],
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^].

You can also use the class System.Net.WebClient which can work with different protocols defined by URI. Here is a code sample: http://www.csharp-examples.net/download-files/[^].

—SA
 
Share this answer
 

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