路径包含资源文件? [英] Path emdedded resource file ?

查看:140
本文介绍了路径包含资源文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


大家好,

我有一个用户手册(.pdf),可通过应用程序中的超链接打开.

为了使其更容易安装.我将.pdf添加为嵌入式资源.

现在我不确定路径是什么.

这是我使用根路径的内容:

Hi all,

I have a User Manual(.pdf) that opens via a hyperlink in my application.

To make it easer to install. I added the .pdf as an embedded resourse.

Now I am not sure what the path is.

This is what i had using a root path:

private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
       {

           /// link to help file ///////

           System.Diagnostics.Process.Start("C:\\sinter plant\\sinter plant\\User Manual.pdf");
       }



如何使用嵌入式文件执行此操作.我的程序集名称是"sinter_plant"

亲切的问候
Nicole



How do i do this using the embedded file. my Assembly name is "sinter_plant"

Kind Regards
Nicole

推荐答案

看看
Have a look at res Protocol[^]

Use IE to open the file, and it will use the res protocol handler.

Best regards
Espen Harlinn


第一个Google命中 [
First google hit[^]. Your resource is in your file, but not in a usable form. As it''s a PDF, you''ll need to write it to the file system ( and you can''t do that in your program directory due to permissions issues ) in order to open it.


这篇关于路径包含资源文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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