| | |
How to open access file & pdf file using visual basic?
Thread Solved |
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...
![]() |
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Reading external data into array of struct
- Next Thread: Set database path at runtime for crystal report9 in VB6
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





