Click here to Skip to main content
15,898,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 31-Jul-16 22:36pm

1 solution

try this when show the image
VB
Application.StartupPath & "\imagedir\imagename.jpg"
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900