Chinaunix首页 | 论坛 | 博客
  • 博客访问: 10623
  • 博文数量: 3
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 20
  • 用 户 组: 普通用户
  • 注册时间: 2020-05-29 18:00
文章分类

全部博文(3)

文章存档

2020年(3)

我的朋友
最近访客

分类: 其他平台

2020-05-31 13:36:50

原文地址:EXCEL下载设置密码 作者:范振辉333

  call method of
      r_oth_g_sheet
      'SAVEAS'
    exporting
      #1            r_oth_l_destination
      #2            1
      #3            zpassw."增加密码设置 20200327 


附加删除文件,EXCEL编辑操作另存一个文件才不会占用
form delete_data_file using value(pv_filename).

  datalv_fname type string,
        lv_rc type i.

  lv_fname pv_filename.

* delete the file
  call method cl_gui_frontend_services=>file_delete
    exporting
      filename lv_fname
    changing
      rc       lv_rc
    exceptions
      others   0.

* flush to execute the deletion
  call method cl_gui_cfw=>flush.

endform.                    " DELETE_DAT_FILE
阅读(1063) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~