Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open a PDF file?
Message
From
30/09/1998 21:12:05
 
 
To
30/09/1998 00:24:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00142220
Message ID:
00142636
Views:
22
>>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
Map
View

Click here to load this message in the networking platform