使用背景图像进行部署 [英] Deploying with a background image

查看:142
本文介绍了使用背景图像进行部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我已经'写了'一个非常酷的小图表程序,但有一个小问题。我在图表区域中使用背景图像,当我部署程序并尝试将其安装在另一台计算机上时,此图像不会被传输。从编写程序开始,新计算机将在指定的文件夹路径中查找图像。

例如,我使用Designer视图指定'C:\ MyPictures \ image.jpg'作为我的背景图像,然后当我发布程序,安装在新机器上并运行程序时,有一个错误,它无法在'C:\ MyPictures \ image.jpg'找到图像。

任何想法如何使用背景图像进行部署?

谢谢,

Hello,  I've 'written' a pretty cool little charting program, but have one small problem.  I'm using a background image in the chart area and this image does not get transferred when I deploy the program and try to install it on another computer.  The new computer will look for the image in the specified folder path from when I wrote the program.

For example, I use the Designer view to specify 'C:\MyPictures\image.jpg' as my background image and then when I Publish the program, install on a new machine and run the program, there is an error that it can't find image at 'C:\MyPictures\image.jpg'.

Any ideas how to deploy with a background image?

Thanks,

推荐答案

通常你不使用绝对路径到图像。尝试使用安装程序的位置的相对路径。

Alex。
Usually you do not use the absolute path to the image. Try to use relative path from the location where your program is installed.

Alex.


这篇关于使用背景图像进行部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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