General information
Category:
Coding, syntax & commands
>>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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only