报告与外部图像的相对路径 [英] Report with external images relative path
本文介绍了报告与外部图像的相对路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
数据库我保存部分图像路径imagedir\imagename.jpg
和副本图像到那个位置
现在在报告中我需要显示该图像
imagedir位于相同的目录在哪里是数据库(使用sql ce)和app exe
使用vb.net windows窗体和windows报告
谢谢
我尝试过:
可以找不到解决方案
我是否需要更改图像的保存方式,以便存储完整路径
如果应用程序的文件夹稍后更改将会出现问题
Hi
in database i save part of image path "imagedir\imagename.jpg"
and copy image to that location
now in report i need to show that image
imagedir is located in the same dir where is database (using sql ce) and app exe
using vb.net windows forms and windows report
thanks
What I have tried:
can't find solution for this
do i need to change the way image is saved so the full path is stored
that will be a problem if folder of app is change later
推荐答案
在显示图片时尝试此操作
try this when show the image
Application.StartupPath & "\imagedir\imagename.jpg"
这篇关于报告与外部图像的相对路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文