請問各位社群朋友,有沒有辦法在LabVIEW上開啟*.pdf檔案

各位朋友,我想要在LabVIEW上做一些有關程式使用上的說明,我想到的是開啟一些*.DOC檔或是*.PDF檔;印象中開啟*.DOC還OK,有沒有那一位朋友可開啟*.PDF,請不吝告知,感恩!!!

大哉問!

請參考這裡:Opening an Acrobat PDF File From LabVIEW?

請下載範例程式:Open PDF.vi (當成subVI來用就好了)(建議可以直接放到「C:\Program Files\National Instruments\LabVIEW 7.1\user.lib」當成一個實用的usbVI來使用)

原始文章如下:


Opening an Acrobat PDF File From LabVIEW?

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems>>Full Development System, LabVIEW Development Systems>>Base Package

![|10x1](upload://2ysDegIj5Vd1nsTDqPnvj2hzgbk.gif)

Problem: How can I open an Acrobat Reader document from a LabVIEW VI?

Solution: The biggest difficulty in opening a PDF file from LabVIEW is finding a reliable way of programmatically detecting where the Acrobat Reader is installed on the computer, regardless of Acrobat Reader version, OS and language settings. The best way to do this is by accessing the registry where Acrobat Reader is installed and then calling the Acrobat Reader executable with the desired pdf document as an input parameter using System Exec.vi. Please see the attached VI for an example of this technique.

Related Links:

Attachments: ![](upload://v96azdsY9C1y0GJyjA8BYQ85Kwf.gif)

Report Date: 2003/10/31
Last Updated: 2004/10/30
Document ID: 32U67DMB

Benjamin38460.8796180556

Sorry BJ:

可否轉成環境是LabVIEW6.1,感謝!!!

 sorry, 以後 Banjamin的id還是不要簡稱為BJ比較好
大概是我想太多了 , 不過第一時間我真的想到別的地方去了

[QUOTE=yao] sorry, 以後 Banjamin的id還是不要簡稱為BJ比較好
大概是我想太多了 , 不過第一時間我真的想到別的地方去了[/QUOTE]

對阿....以後如果要簡稱的話,叫我「Ben」就可以了唷。

因為我的是LabVIEW7.1,所以只能轉成LabVIEW7.0的檔案,希望有LabVIEW7.0的網友可以幫我轉成LabVIEW6.1。

LabVIEW7.0:pdf.vi

順便貼出程式內容:

我不知道有沒有轉成功,因為有出現錯誤訊息(登錄檔無法存成以前的版本),請試看看

pdf_LV6.1.vi

ancle38462.4907291667

感謝各位大家幫忙!!!謝謝!!!已經可以用囉!!!