将excel文件修改并存储到可执行文件VB.NET中 [英] Modify and store excel file into executable file VB.NET

查看:129
本文介绍了将excel文件修改并存储到可执行文件VB.NET中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我应该在可执行文件中嵌入一个excel文件。

在程序代码中,我需要读取这个excel文件并编辑内容,然后将其保存到可执行文件。

但是如何在VB.net中创建这种类型的可执行文件?



如何存储excel文件以及如何将excel文件保存回exe文件。



我尝试过:



将excel存储到资源中但无法使用将编辑后的文件保存到可执行文件中

I should embedded an excel file in Executable file.
In programme code, I need to read this excel file and edit the content, then save it to Executable file.
But how to create this type of executable file in VB.net?

How to store the excel file and how to save the excel file back into exe file.

What I have tried:

Storing excel into resources but unable to save the edited file into executable file

推荐答案

引用:

但如何在VB.net中创建这种类型的可执行文件?

But how to create this type of executable file in VB.net?



你没有!因为它会使它成为一个自我修改的可执行文件。

因为可执行文件位于受保护的内存空间中以防止发生这种情况。



请注意,为了安全起见,ProgramFile目录也受到Windows的保护。


You don't! because it would make it a self modifying executable.
Because the executable lay in a protected memory space to prevent this kind of things to happen.

Note that ProgramFile directory is also protected by windows against such things for security purpose.


这篇关于将excel文件修改并存储到可执行文件VB.NET中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆