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 風中的舞者 閱讀(758) 評論(0)  編輯  收藏

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


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

          常用鏈接

          留言簿(1)

          隨筆檔案

          文章檔案

          java技術

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 白山市| 天峻县| 德昌县| 衡东县| 防城港市| 霍邱县| 新晃| 西林县| 平谷区| 会昌县| 汉中市| 闵行区| 来凤县| 峨山| 屯留县| 尤溪县| 永康市| 金坛市| 祁连县| 乌兰县| 汝城县| 靖宇县| 神木县| 安庆市| 石屏县| 治县。| 霸州市| 巧家县| 大余县| 鹤岗市| 玉溪市| 龙泉市| 石门县| 宁河县| 德安县| 罗田县| 西畴县| 吉木乃县| 明水县| 鄱阳县| 会昌县|