Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 22-01-2009
Member
 
Join Date: Dec 2008
Posts: 13
Open pdf file in vb.net applicatin

Hello,

How i can open pdf file in vb.net applicatin?
Please help.
Reply With Quote
  #2  
Old 22-01-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Open pdf file in vb.net applicatin

I know two mehods to Open pdf file in vb.net applicatin.
  1. The quick and easy way to do this is to use the web browser control. This assumes that both IE and the Acrobat Reader are installed on the target system. Just use the Navigate method of the control with the PDF filename as the parameter and you're there.

  2. Right click on any of the tabs in your toolbox and click choose items.(Just make sure you have a version of adobe reader installed before starting.) When the dialog box pops up click the 'com components' tab then pick tha 'adobe pdf reader' com component. Click ok and you should now see a 'adobe pdf reader' control in your toolbox. Click this and drag it to your vb form.(you may need to resize it, usually appears very small). Now in order to read any pdf just alter the 'src' property of the control either in code or in the designer. when you run the program you should be able to view the pdf doc in the vb form with most of the options you get in adobe reader. Here is how you would alter the 'src' property in code.

Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

AdobeReader.src = "C:\mydoc.pdf"

End Sub
Reply With Quote
  #3  
Old 22-01-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Open pdf file in asp.net applicatin

Hi,

The method i talked about earlier is for reading a pdf file within a vb.net windows application and not for asp.net.
To read a pdf in asp.net just point a hyperlink straight to the pdf file and it should just open it within the browser
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Open pdf file in vb.net applicatin"
Thread Thread Starter Forum Replies Last Post
HTC android phones ?cannot open this type of file?, when open iPhone movies Zaedgy Portable Devices 5 10-03-2012 03:04 AM
Office 2003 won't open via DC but will via File, open krolyat MS Office Support 1 28-10-2011 04:26 PM
How to open precompiled header file stating an error no such file found P-chuha Software Development 6 27-06-2011 07:19 AM
I cannot file ?Confirm open after Download" checkbox for file types in Windows 7 Dalapathi Operating Systems 4 07-02-2011 10:19 AM
How to scroll applicatin in Windows Phone 7 Xenaa7 Portable Devices 4 27-10-2010 10:04 AM


All times are GMT +5.5. The time now is 02:28 PM.