|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
open a pdf file in vb code
hello all
I need to know how to open a pdf file using the vb code in Access, i did it before using word objects by creating wordobj is there anything similar for the pdf files thanks in advance |
|
#2
|
|||
|
|||
|
hii
i think this should do Dim App, Doc As Object Set App = CreateObject("AcroExch.App") Set Doc = CreateObject("AcroExch.AVDoc") App.Show Doc.Open "C:\1.pdf", "1.pdf" |
|
#3
|
|||
|
|||
|
i tried ur code, but it is saying that activex cant create the object
![]() |
|
#4
|
|||
|
|||
|
combo box Search
thats cool
|
|
#5
|
|||
|
|||
|
i tried shell execute but it doesnt work either, when i click on the command nothing happens
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 and in the code of the command i used the function like this lngErr = ShellExecute(0, "OPEN", strFile, "", "", SW_SHOW) does anyone have an idea how to make it work thanks a lot in advance |
![]() |
| Viewing: ASP Free Forums > Programming > Visual Basic Programming > open a pdf file in vb code |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|