如何从Windows应用程序C#发布Word文件 [英] How to publish word files from windows application C#

查看:74
本文介绍了如何从Windows应用程序C#发布Word文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows C#项目中,我的Bin/Debug文件夹中有几个Word文件,当我发布项目时,我无法访问这些Word文件,似乎这些文件未发布,并且找不到文件

In my windows C# project, I have several word files in my Bin/Debug folder, when I publish my project I am not able to access the word files, it seems that these files are not published, and getting file not found exception.

任何人都可以帮助我如何发布这些文件,以便我通过设置访问它.根据要求,我不能将文件存储在硬盘或服务器上,应该与应用程序一起存储.

Can any one please help me how to publish those files so that I can access it with my set up. According to requirement I can not store my files on Hard disk or server, it should be with the application.

请帮助我

推荐答案

您可以将这些文件添加为资源".这样,这些单词文件将被编译为可执行文件.在此处阅读: http://msdn.microsoft. com/en-us/library/7k989cfy(v = vs.80).aspx

You can add such files as "resources". That way these word files will be compiled into the executable. Read up here: http://msdn.microsoft.com/en-us/library/7k989cfy(v=vs.80).aspx

这篇关于如何从Windows应用程序C#发布Word文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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