Lotus Notes - open a file from Action Button

徘徊边缘 提交于 2019-12-12 18:26:41

问题


Is there any chance to open a file / document ( .pdf / .txt ) that is located in (for example ) the C drive: from an action button?

I read about Shell function in LotusScript, in which you must specify the path.

Are there any other solutions?


回答1:


If you want to open a file like .pdf or .txt and this extension is connected in Windows with a program to open with then you need only to specify the filepath of your file.

This would be the formula:

@Command([Execute]; "C:\\temp\\myFile.pdf")

and this the LotusScript code:

Dim result As Integer
result = Shell("C:\temp\myFile.pdf", 1)


来源:https://stackoverflow.com/questions/18506291/lotus-notes-open-a-file-from-action-button

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!