posts - 17,  comments - 6,  trackbacks - 0

          ?


          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)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          <2006年10月>
          24252627282930
          1234567
          891011121314
          15161718192021
          22232425262728
          2930311234

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          java技術

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 英德市| 乐至县| 余庆县| 南昌市| 馆陶县| 南平市| 遂川县| 来凤县| 宜州市| 威远县| 梓潼县| 襄城县| 淳安县| 工布江达县| 辛集市| 长宁县| 马山县| 东港市| 察隅县| 泰来县| 潼南县| 定襄县| 诸城市| 井陉县| 沭阳县| 福清市| 新化县| 蓝田县| 游戏| 吉林省| 广昌县| 彭山县| 保康县| 德钦县| 兴业县| 万年县| 青田县| 阜新市| 藁城市| 申扎县| 会昌县|