0
我們有一個由別人構建在Oracle Forms 6i中的程序。有一種形式的功能,當按鈕被點擊時,表單將調用打開一個MS Word模板並將數據庫中的數據放入模板中。現在我們已經遷移到Windows 7和Office 10,模板不再由Oracle Forms在MS Words中打開。沒有錯誤...這是用於啓動MS字的代碼:Oracle Form 6i開放word文檔
procedure fileopen (fname in varchar2) is
arglist ole2.list_type;
begin
obj_hnd := ole2.create_obj ('Word.Basic');
arglist := ole2.create_arglist;
ole2.add_arg (arglist, fname);
ole2.invoke (obj_hnd, 'fileopen', arglist);
ole2.invoke(obj_hnd, 'AppShow');
ole2.destroy_arglist (arglist);
end;
有沒有人有一個想法,爲什麼MS字不啓動?我該如何解決這個問題?當窗體在MS Word 2003的Windows XP下運行時沒有任何問題。
謝謝。我試過但沒有任何事情發生時,我從Word.Basic更改爲Word.Application – user1298608