Information générale
Catégorie:
Codage, syntaxe et commandes
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement