From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



在同一台電腦上不同版本的LabVIEW中使用Report Generation Toolkit for Microsoft Office.



主要軟體:
主要軟體版本: 1.0.1
主要軟體修正版本:
次要軟體: N/A

問題:
我已經為電腦上的一個LabVIEW的版本安裝了報表產生工具組。我現在在我的電腦上安裝了一個更新版本的LabVIEW,並且我也希望這個更新版本的LabVIEW也同樣能使用工具組。但是我無法從光盤上多次安裝工具組。有沒有什麼方法讓不同版本的LabVIEW都能使用到工具組中的VI?


解答: ,
Report Generation Toolkit for Microsoft Office是一個共享的工具組,與LabVIEW的版本沒有必然的對應關係。因此,一旦此工具組為某一版本的LabVIEW安裝過之後,就不需要再次安裝了。相反的,您只需要把一些文件複製到其他版本的LabVIEW的目錄下,以使您其他版本的LabVIEW可以讀取到工具組即可。例如,如果您已經在 LabVIEW6i下安裝了此工具組,以下是將正確的文件複製至LabVIEW 6.1的步驟。

  1. 打開Windows瀏覽器。

  2. 打開您 LabVIEW 6i的目錄: C:\Program Files\National Instruments\LabVIEW 6\vi.lib\addons。
    拷貝「addons」內的「_office」目錄,並將它貼上至C:\ Program Files\National Instruments\LabVIEW 6.1\vi.lib\addons目錄。

  3. 打開C:\Program Files\National Instruments\LabVIEW 6\vi.lib\utility。
    複製「NIReport.llb」,並將它貼上至C:\Program Files\National Instruments\LabVIEW 6.1\vi.lib\utility目錄。

  4. 打開C:\Program Files\National Instruments\LabVIEW 6\menus\default。
    複製下列.mnu文件:

    wordtab.mnu
    wordadv.mnu
    wordgen.mnu
    wordmcr.mnu
    wordpict.mnu
    word.mnu
    excmacro.mnu
    exceladv.mnu
    excelfrm.mnu
    excelgen.mnu
    excelpic.mnu
    excel.mnu
    nireport.mnu
    nireplay.mnu
    nirepadv.mnu

    並將這些文件貼上至C:\Program Files\National Instruments\LabVIEW 6.1\menus\default目錄。

  5. 打開 C:\Program Files\National Instruments\LabVIEW 6\examples。
    從此目錄中複製「office」目錄,並將其貼上至C:\Program Files\National Instruments\LabVIEW 6.1\examples目錄。

  6. 從C:\Program Files\National Instruments\LabVIEW 6\help目錄中複製下列文件:
    lvoffice.hlp
    lvoffice.txt
    lvoffice.cnt
    lvoffice.GID
    並將這些文件貼上至C:\Program Files\National Instruments\LabVIEW 6.1\help目錄。

  7. 對NIReport.llb中的VI和「office」目錄下的範例進行集中編譯。打開 LabVIEW 6.1並且打開一個新VI。選擇Tools >> Advanced >> Mass Compile。

    通過彈出的對話框,打開C:\Program Files\National Instruments\LabVIEW 6.1\examples\office,然後點擊Select Cur Dir。點擊Mass Compile以對範例進行編譯。

    當範例編譯結束,關閉Mass Compile視窗並再次打開Tools >> Advanced >> Mass Compile。此次,通過對話框打開C:\Program Files\National Instruments\LabVIEW 6.1\vi.lib\utility,然後點擊Select Cur Dir。點擊Mass Compile對此目錄進行編譯。當編譯結束之後關閉視窗。關閉LabVIEW 6.1。

  8. 打開LabVIEW 6.1。您應該可以通過函數面版上的報表產生子面版來使用Office工具組中的VI了。

以下是為7.1和8.0版本的LabVIEW複製Report Generation Toolkist for Microsoft Office文件的方法。

  1. 打開Windows瀏覽器。
  2. 打開您的LabVIEW 7.1的目錄:C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\addons。
    複製"addons"目錄中的"_office"目錄,並將其貼上至C:\ Program Files\National Instruments\LabVIEW 8.0\vi.lib\addons 目錄。
  3. 打開C:\Program Files\National Instruments\LabVIEW 8.0\vi.lib\utility。
    將NIReport.llb的附檔名由.llb更改為.bkp。
  4. 打開C:\Program Files\National Instruments\LabVIEW 7.1\vi.lib\utility。
    複製 "NIReport.llb"並將其貼上至C:\Program Files\National Instruments\LabVIEW 8.0\vi.lib\utility目錄。
  5. 打開C:\Program Files\National Instruments\LabVIEW 7.1\menus\default。
    複製下列.mnu文件:

    word.mnu
    excel.mnu

    貼上這些文件至C:\Program Files\National Instruments\LabVIEW 8.0\menus\Categories\Programming\_NI Report目錄。
  6. 打開C:\Program Files\National Instruments\LabVIEW 7.1\menus\default。
    複製下列.mnu文件:

    wdconst.mnu
    wordtab.mnu
    wordadv.mnu
    wordgen.mnu
    wordmcr.mnu
    wordpict.mnu
    excmacro.mnu
    exceladv.mnu
    excelfrm.mnu
    excelgen.mnu
    excelpic.mnu

    貼上這些文件至C:\Program Files\National Instruments\LabVIEW 8.0\menus\default目錄。
  7. 打開C:\Program Files\National Instruments\LabVIEW 7.1\examples。
    從此目錄中複製"office" 目錄並將其貼上至C:\Program Files\National Instruments\LabVIEW 8.0\examples 目錄。
  8. 從C:\Program Files\National Instruments1\LabVIEW 7.1\resource\vicnvrt中複製下列文件:

    lvoffice.cvt
    lvoffice2.cvt

    貼上這些文件至C:\Program Files\National Instruments1\LabVIEW 8.0\resource\vicnvrt目錄。
  9. 在Labview 8.0中打開一個空白vi並切換至程式區。

  10. 從選單中選擇Tools -> Advanced -> Edit Palette Set

  11. 在出現的函數面版中,打開Report Generation子面板(Programming -> Report Generation)。

  12. 在子面版的空白區域單擊右鍵並選擇Insert -> Subpalette。

  13. 選擇 Link to an existing palette file (.mnu)並點擊OK。

  14. 選擇C:\Program Files\National Instruments\LabVIEW 8.0\menus\Categories\Programming\_NI Report 目錄中的word.mnu文件。

  15. 重複步驟12-14並在14步驟中選擇excel.mnu文件。

  16. 在左邊的Edit Controls and Functions Palette Set 視窗中選擇Save Changes。

  17. 您現在應該就可以使用位於函數面板中的Excel和Word子面板了。


相關連結: ,
"Palettes Not Populating" Error with the Report Generation Toolkit 1.0 for Microsoft Office and LabVIEW 6.1
Installation Errors with the Report Generation Toolkit 1.0 for Microsoft Office and LabVIEW 6.1
Report Generation Toolkit 1.0.1 Excel Error Helper.vi Not Found After Upgrading to LabVIEW 6.1
KnowledgeBase 2W98QLQJ. Why is the "Click Here For More Help" Option in the Context Help Window not Appearing for Some of My VIs?


附加檔案:





報告日期: 10/19/2006
最後更新: 11/02/2006
文件偏號: 2JI853TS