Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open a PDF file?
Message
De
30/09/1998 21:12:05
 
 
À
30/09/1998 00:24:05
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00142220
Message ID:
00142636
Vues:
23
>>Hi,
>>
>>I would like to know if there is a way to open a PDF file programatically from VFP. They will be stored in a subdirectory on the server. I would prefer to not have the user to down load it and then open it.
>>
>>Thanks
>>Earl
>
>If the client has the reader software, you can open it using shellexecute:
>
>oShell = CREATEOBJECT('Shell.Application')
>oShell.Open('f:\mypdffile.pdf')

When I tried this all not much seemed to happen. oShell was created but nothing was visible so I tried oshell.visible = .t. that got me an OLE error. Any suggestions about what I might be doing wrong.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform