全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1495
推到 Plurk!
推到 Facebook!

delphi的intraweb程序(dll模式)中操作word和excel的問题

答題得分者是:william
sugar
一般會員


發表:6
回覆:15
積分:9
註冊:2003-05-27

發送簡訊給我
#1 引用回覆 回覆 發表時間:2004-05-10 09:05:14 IP:210.243.xxx.xxx 未訂閱
我用intraweb的exe模式和dll模式分别做了測試,結果在exe下完全正常, 而在dll模式下,就會出現錯誤, word和exce無法釋放,也無法將檔案產生在server上, 我是用CreateOleObject('Excel.Application')的方式產生excel 我的程序是dll模式的 怎麼解决? 發表人 - sugar 於 2004/05/10 10:00:59 發表人 - sugar 於 2004/05/10 10:08:00
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#2 引用回覆 回覆 發表時間:2004-05-10 10:08:03 IP:147.8.xxx.xxx 未訂閱
I remember I have seen a knowledge base article for it on Microsoft. Sorry to tell you tell Office is NOT designed to be automated inside a dll. M$ simply said you shouldn't and can't use Office in such way. Don't know if the newer Office has changed this behavior or not.
sugar
一般會員


發表:6
回覆:15
積分:9
註冊:2003-05-27

發送簡訊給我
#3 引用回覆 回覆 發表時間:2004-05-11 08:25:34 IP:210.243.xxx.xxx 未訂閱
謝謝你的告知...那我只有試試其他辦法囉 有人用過 Rave Report 寫Intraweb報表嗎... 可以提供一些範例讓我參考一下好嗎...要開始學Rave Report 不知道會不會很難 有點擔心 因為我們沒用 Fast Report..... 謝謝你的回答.....TKS
william
版主


發表:66
回覆:2535
積分:3048
註冊:2002-07-11

發送簡訊給我
#4 引用回覆 回覆 發表時間:2004-05-11 09:36:07 IP:147.8.xxx.xxx 未訂閱
Although Office can't be used inside a dll, I think you could create an exe preparing the reports and let your dll communicate with the exe running (so you probably need to login).    I find another KB on Office automation... http://support.microsoft.com/default.aspx?scid=kb;EN-US;288368
系統時間:2024-06-26 23:32:14
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!