注册 登录
编程论坛 VFP论坛

关于libxl 读取excel 的问题,怎么打开带密码的Excel文档

easyppt 发布于 2023-06-08 09:48, 1119 次点击
libxl  如何打开 设置密码的 EXCEL ?

[此贴子已经被作者于2023-6-8 11:41编辑过]

5 回复
#2
easyppt2023-06-08 10:20
主题内容已改,带密码的文档怎么操作?

[此贴子已经被作者于2023-6-8 11:42编辑过]

#3
nbwww2023-06-08 15:32
int xlBookLoad(BookHandle handle, const wchar_t* filename)
Loads an entire file into memory. Returns 0 if error occurs. Get an error info with the xlBookErrorMessage().
int xlBookSave(BookHandle handle, const wchar_t* filename)
Saves current workbook into the file. Returns 0 if error occurs. Get an error info with the xlBookErrorMessage().

没有这个参数  应该是不行
#4
easyppt2023-06-08 17:04
好像是的,对于密码保护的excel 没法处理,没看到提供密码的参数。
微软 通过密码还原,算法估计作者不知道

[此贴子已经被作者于2023-6-8 17:06编辑过]

#5
csyx2023-06-09 08:41
以下是引用easyppt在2023-6-8 17:04:31的发言:
微软 通过密码还原,算法估计作者不知道

想多了吧,我看头文件里有 xlSheetSetProtect 函数的声明,既然能加密保护,咋可能不知道解密?
#6
nbwww2023-06-11 19:14
以下是引用csyx在2023-6-9 08:41:11的发言:


想多了吧,我看头文件里有 xlSheetSetProtect 函数的声明,既然能加密保护,咋可能不知道解密?

请指教一下如何打开加密的?
1