Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
i want to open pdf file when i click image button. If anybody know this plz help me.
Posted

The hard way using Adobe SDK is described here: Generate Thumbnail Images from PDF Documents.
The easy way is:
System.Diagnostics.Process.Start("Acrord32.exe", "C:\Temporary\test.pdf")
Acrord32.exe is the name of Acrobat Reader application.
Sergey Chepurin.
 
Share this answer
 
Comments
RaviRanjanKr 30-Apr-11 14:54pm    
Nice Answer! My 5 :)
XML
<a href="1004211.pdf">
    <asp:Image ID="Image1" runat="server" ImageUrl="~/untitled.bmp" Height="50px"
        Width="50px"/></a>
 
Share this answer
 
Comments
Sergey Chepurin 2-May-11 6:03am    
Is this really VB.NET category related?
Sergey Chepurin.
Jayanthi-SE 5-May-11 2:24am    
yes ofcourse. I tried and got answer after that i post this.
Jayanthi-SE 5-May-11 2:25am    
if we want to download application form that time we can use. i used this purpose.

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