最近在做ISH的一個打印功能,SMARTFORM的需求本身很簡單,但做起來則一波三折。
使用環境是這樣的:Windows 7 64bit + SAP GUI 740 Patch 5 + MS Office 2013 64bit
先是,編輯文本(即打開文本編輯器)時出現了“由於宏安全設置,無法找到宏或宏被禁用”的提示,如下圖:

點擊“確定”按鈕,SAP GUI會卡死。按照提示在word中打開了宏信任選項,問題依然存在。
使用google搜索,得到一條相關內容,提問者遇到了相同的錯誤提示"the macro cannot be found or has been disable because of your Macro security setting"。該網頁中的內容指出,GUI 740 Patch 5以下的版本是不支持64bit的MS Office的,因而會彈出這個提示。
雖然我的客戶端已經是Patch 5,但抱着試試看的態度,請同事幫忙查了下相關note,並且要了份patch 10的補丁對SAP GUI進行升級。
結果當然是沒效果。
經理提出,該問題的原因可能在於SAP GUI客戶端安裝不完整,建議我運行客戶端安裝程序SetupAll.exe,勾選全部組件,重新安裝。
照這樣安裝之后,再次運行SMARTFORMS文本編輯器,“宏安全”的提示依然存在...沒辦法,只能繼續嘗試重裝office、windows了。因為經理使用office2016+win10沒有該問題(但存在其它問題,下面會描述)。所以我先把自己的的office升級到了2016。
“宏安全”的錯誤提示消失了。
下面是第二個問題。
我們試圖啟用SAPscript Text Editors作為編輯器,卻出現了錯誤提示,這次的內容是:
CSapEditorCtrl::GetObject: Object 13 does not exist (沒有留截圖)
經理在自己的電腦上測試的時候,已經發現了該問題,因此他直接發給了我一份補丁解決。該問題有完全對應的note可查,解決過程比較簡單。
關於本文中的第二個問題的更多信息,可以參考這篇文章:SAPscript Text Editors
Since SAPGUI for Windows Release 7.40 Compilation 2 (Patch 05) and higher, the controls for SAPscript Leagacy Text Editor are o longer available as standard. As per note: 2221815, the SAPscript Legacy Text Editor patch SAPSLTESP00_0-70001053.EXE can be downloaded from:
http://support.sap.com/swdc
-> Support Packages and Patches
-> Browse Download Catalog
-> SAP Frontend Components
-> SAPSCRIPT LEGACY TEXT EDITOR
-> SAPSCRIPT LEGACY TEXT EDITOR (Support Packages and Patches)
-> Win32If you would like to include SAPscript legacy editor in a SAPGUI server build, please see the BC-FES-GUI note 2192210 for steps.
本文鏈接:http://www.cnblogs.com/hhelibeb/p/6086030.html
