From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI產品與技術 討論區

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview RGT與Office版本相容問題

Solved!
Go to solution

大家好

 

小弟在研究“報表的範例(word report - XY graph Generation.vi)會一直得到-41106的錯誤,往下追蹤,是NI_report.lvclass:New Report.vi->NI_report.lvclass:new report subVI.vi->NI_Word.lvclass:New Report.vi中的Automation Open會得到-2147319779的錯誤(程式庫未登錄)

我有試著將Automation Refnum重新選擇ActiveX class指定為Microsoft Word 12.0 Object Library Version 8.4,但仍會得到相同的錯誤

 

請問是否在64位元OS一定要安裝64位元Office,使用RGT開啟報表時才不會有-41106的錯誤呢?

 

目前開發環境的配置如下

OS: win7 64位元 SP1

Labview 2016 pro版 32位元 f6更新

Office 2007 pro版 32位元

0 Kudos
Message 1 of 5
(3,759 Views)

版本相容性請參考:http://www.ni.com/product-documentation/54029/en/

Node Health Tech. Project Manager, Certified LabVIEW Architect.
0 Kudos
Message 2 of 5
(3,720 Views)

建議可以確定安裝順序是否如下:

  1. Office 2007
  2. LabVIEW 2016 Pro

 

0 Kudos
Message 3 of 5
(3,708 Views)

我這邊環境配置是: Win 10 64-bit ; LabVIEW 2017 & 2018 32-bit ; Office 365 32-bit 是可以成功run的,所以位元版本上應該是OK

 

網路上面有找到一些可能的解法,這邊分享給大家參考:

1. 可以先確認是哪一段calling的錯誤,大概就可以分成:

  • LabVIEW RGT -> Open Office Software:
    • RGT 問題?
    • Office visibility properties?
  • ActiveX -> Open Office
    • RGT 問題
  • Office問題: 所有office相關軟體移除、重灌、並記得將registry key刪除

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019LdQSAU&l=zh-TW

 

2. 下面這篇他在文章最後面有提到可能為"因為安裝了一些新版的office系列軟體導致":
"For example, having Visio 2013 installed on the same machine as Microsoft Office 2010. Both scenarios can cause an extra registry key to be available. The registry key is not pointed to a Microsoft Excel Object Library and the Report Generation Toolkit is trying to use this registry. "

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P82QSAS&l=zh-TW

所以同時也要確保office系列軟體是否有造成registry key 更動

 

3. 這邊有講到關於registry key處理,可分成重灌office(較久但比較保險)或是直接去改動registry key (可能有風險)

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P82QSAS&l=zh-TW

 

再試試看吧~

0 Kudos
Message 4 of 5
(3,682 Views)
Solution
Accepted by topic author dfr219

感謝各位提供一些方向。

小弟後來將office2007及labview移除後,改成安裝office2016 32-bit及labview2016 32-bit patch-f6於Win7 64-bit,目前可正常開啟RGT example。

估計是不明原因造成登錄檔有問題,但沒時間再試了,供各位參考。

Message 5 of 5
(3,666 Views)