Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening PDF Files.
Message
De
09/04/2003 13:22:59
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
À
09/04/2003 09:26:36
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00775449
Message ID:
00775630
Vues:
16
FYI:
I figured out that I cannot use the standard Open call to open the PDF document.
The code below will open a PDF document.


Alvin


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 Const SW_NORMAL = 1

Private Sub Command1_Click()
ShellExecute 0&, "Open", "c:\pdffile.pdf", vbNullString, vbNullString, SW_NORMAL
End Sub
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform