How to open access file & pdf file using visual basic?

Thread Solved

Join Date: Jun 2007
Posts: 29
Reputation: shahriar2403 is an unknown quantity at this point 
Solved Threads: 0
shahriar2403 shahriar2403 is offline Offline
Light Poster

How to open access file & pdf file using visual basic?

 
0
  #1
Mar 11th, 2008
How can i open acces file using a command button in vb. What should b da reference? what should b da code?
Same question for opening pdf file. help me plz.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 122
Reputation: cometburn is an unknown quantity at this point 
Solved Threads: 19
cometburn's Avatar
cometburn cometburn is offline Offline
Junior Poster

Re: How to open access file & pdf file using visual basic?

 
0
  #2
Mar 11th, 2008
Try this and let me know if it worked...

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

Private Sub Command1_Click()
strDir = "<your files Directory>"
strFile = "<your filename>.pdf"
ShellExecute 0, "OPEN", strDir & strFile, "", strDir, 1
End Sub
Proud to be Philippine made...
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 29
Reputation: shahriar2403 is an unknown quantity at this point 
Solved Threads: 0
shahriar2403 shahriar2403 is offline Offline
Light Poster

Re: How to open access file & pdf file using visual basic?

 
0
  #3
Mar 15th, 2008
Yo, Bro!!! Thanks again. It works very well. Good job. Dont forget to help me in next time.....
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 122
Reputation: cometburn is an unknown quantity at this point 
Solved Threads: 19
cometburn's Avatar
cometburn cometburn is offline Offline
Junior Poster

Re: How to open access file & pdf file using visual basic?

 
0
  #4
Mar 16th, 2008
glad to help!
Proud to be Philippine made...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC