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
風中的舞者
閱讀(749)
評論(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的問題解決(2539)
2.?向大家推薦一個SOA,J2EE,XML相關PDF下載網站(928)
3.?開源的課件管理系統(807)
4.?pb 操作 Excel(749)
5.?tomcat 的log4j配置方法(488)
評論排行榜
1.?weblogic集成birt的問題解決(3)
2.?www.cms4j.com(1)
3.?向大家推薦一個SOA,J2EE,XML相關PDF下載網站(1)
4.?高操下載教程(1)
5.?ppoe服務中,只接受通過撥號驗證的用戶的流量(0)
主站蜘蛛池模板:
英德市
|
乐至县
|
余庆县
|
南昌市
|
馆陶县
|
南平市
|
遂川县
|
来凤县
|
宜州市
|
威远县
|
梓潼县
|
襄城县
|
淳安县
|
工布江达县
|
辛集市
|
长宁县
|
马山县
|
东港市
|
察隅县
|
泰来县
|
潼南县
|
定襄县
|
诸城市
|
井陉县
|
沭阳县
|
福清市
|
新化县
|
蓝田县
|
游戏
|
吉林省
|
广昌县
|
彭山县
|
保康县
|
德钦县
|
兴业县
|
万年县
|
青田县
|
阜新市
|
藁城市
|
申扎县
|
会昌县
|