如何使用oledb ...打开受密码保护的Excel文件?

编程入门 行业动态 更新时间:2024-10-24 04:49:21
本文介绍了如何使用oledb ...打开受密码保护的Excel文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我使用oledb连接与Excel File进行交互,但是当我当时使用受密码保护的Excel文件时,上述连接字符串不起作用.. 请建议我进行连接,以帮助我打开受密码保护的Excel文件.. 我的连接字符串...

I used a oledb connection for interation with Excel File, but when i used a password protected excel file at that time the above connection sting is not working.. please suggest me a connection sting that will help me to open a password protected excel file.. My Connection String...

conString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FilePath + ";Extended Properties=Excel 8.0";

推荐答案

此处是有关CP的文章,可帮助您解决此问题: 使用Visual Studio .NET自动化MS Excel [ ^ ] Here is an article on CP which would help you out on this: Automating MS Excel Using Visual Studio .NET[^]

更多推荐

如何使用oledb ...打开受密码保护的Excel文件?

本文发布于:2023-11-10 15:54:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1575802.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:密码保护   如何使用   文件   oledb   Excel

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!