storm56
BlogJava
首頁
新隨筆
新文章
聯系
聚合
管理
posts - 17, comments - 6, trackbacks - 0
pb 操作 Excel
?
int
????ret??????
string?filename
string?filename2
string?resume
filename
=
"
d:\smis2\xmk.xls
"
filename2
=
"
d:\smis2\2006050120xmk.xls
"
resume
=
"
d:\smis2\resume.xlw
"
filedelete(resume)
oleobject????xlapp,xlsub?????
xlapp
=
create?oleobject
ret
=
xlapp.connecttonewobject(
"
excel.sheet
"
)???
//
ret=xlapp.connecttonewobject("excel.application")???
if
????ret
<
0
????then??????
?????????????messagebox(
"
你的電腦未安裝Excel
"
,string(ret))??????
?????????????
return
??????
end????
if
??????
xlapp.application.workbooks.open(filename)??????
xlsub
=
xlapp.application.activeworkbook.worksheets[
1
]??????
xlsub.cells[
4
,
2
].value
=
"
我是吳吳
"
xlapp.saveas(filename2,
true
)
messagebox(
"
aa
"
,
"
aa
"
)
xlapp.application.save(
'
?
'
)
//
xlapp.application.close()
xlapp.application.quit()
xlsub.disconnectobject()
xlapp.disconnectobject()
destroy?xlsub
destroy?xlapp
posted on 2006-10-20 10:09
風中的舞者
閱讀(758)
評論(0)
編輯
收藏
新用戶注冊
刷新評論列表
只有注冊用戶
登錄
后才能發表評論。
網站導航:
博客園
IT新聞
Chat2DB
C++博客
博問
管理
Copyright ©2025 風中的舞者 Powered by:
博客園
模板提供:
滬江博客
<
2006年10月
>
日
一
二
三
四
五
六
24
25
26
27
28
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
常用鏈接
我的隨筆
我的評論
我的參與
最新評論
留言簿
(1)
給我留言
查看公開留言
查看私人留言
隨筆檔案
2008年5月 (1)
2008年3月 (1)
2007年5月 (1)
2006年10月 (3)
2006年9月 (1)
2006年8月 (1)
2006年6月 (2)
2006年3月 (2)
2006年2月 (1)
2005年11月 (4)
文章檔案
2006年6月 (1)
2006年3月 (1)
2005年11月 (1)
java技術
www.javaeye.com
java專業技術
搜索
最新評論
1.?re: weblogic集成birt的問題解決[未登錄]
我用第二種方法,結果顯示空白內容。我使用的是weblogic10.3
--water
2.?re: weblogic集成birt的問題解決
您好LZ,我用你說的方法設置了,
可還是不行,還報那個錯,
我的weblogic是10.3的
請問還有辦法解決嗎?
--猜猜
3.?re: 向大家推薦一個SOA,J2EE,XML相關PDF下載網站
是許昌
--是否規范
4.?re: weblogic集成birt的問題解決
評論內容較長,點擊標題查看
--Maggie
5.?re: www.cms4j.com
http://www.totcms.com/
--http://www.totcms.com/
閱讀排行榜
1.?weblogic集成birt的問題解決(2548)
2.?向大家推薦一個SOA,J2EE,XML相關PDF下載網站(936)
3.?開源的課件管理系統(810)
4.?pb 操作 Excel(758)
5.?tomcat 的log4j配置方法(490)
評論排行榜
1.?weblogic集成birt的問題解決(3)
2.?www.cms4j.com(1)
3.?向大家推薦一個SOA,J2EE,XML相關PDF下載網站(1)
4.?高操下載教程(1)
5.?ppoe服務中,只接受通過撥號驗證的用戶的流量(0)
主站蜘蛛池模板:
同仁县
|
永寿县
|
微山县
|
天水市
|
萝北县
|
华坪县
|
福海县
|
海城市
|
五河县
|
西平县
|
噶尔县
|
安多县
|
伽师县
|
古交市
|
克拉玛依市
|
若尔盖县
|
西吉县
|
中西区
|
嵩明县
|
黔江区
|
厦门市
|
棋牌
|
三亚市
|
鹤峰县
|
汤阴县
|
清丰县
|
舟曲县
|
灌阳县
|
平顺县
|
北流市
|
石河子市
|
渑池县
|
理塘县
|
景宁
|
莲花县
|
五家渠市
|
潞城市
|
固阳县
|
营口市
|
黑山县
|
太仓市
|