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技術

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 偏关县| 株洲县| 武清区| 永顺县| 兴化市| 泉州市| 丰都县| 应城市| 邻水| 叶城县| 武威市| 嵊州市| 柏乡县| 肃北| 荆州市| 镶黄旗| 神池县| 肇庆市| 教育| 方城县| 萨迦县| 涿鹿县| 五莲县| 儋州市| 松桃| 辽阳县| 霞浦县| 湘阴县| 四会市| 资源县| 商水县| 上饶市| 永城市| 永嘉县| 临城县| 边坝县| 桃源县| 鄂伦春自治旗| 潍坊市| 太仆寺旗| 仲巴县|