Click here to Skip to main content
15,890,579 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hi guys ...

I am developing a project on School Management in which there are many reports are generated . I am using Visual C#, with .NET Framework 3.5 and SQL2005 as Back end .

My problem is that on top of every reports i have to show an image(logo) which am fetching from the database using a function.

How can i show the image on the RDLC.

How do i programattically access the RDLC elements ?


Any idea or Sample code will save my day ...


Thanks in Advance .
Cheers !!!!!!!!!!!
Posted
Updated 22-May-11 20:05pm
v2

1 solution

Refer to discussion @ http://www.codeproject.com/Messages/3291203/Dynamic-Image-in-Report-Viewer.aspx[^]

It states that you can get the path to the folder that your app was launched from using Application.StartupPath and build the fully qualified path to your file using the Path class:

C#
string fullPath = Path.Combine(Application.StartupPath, "myfilename.bmp");
 
Share this answer
 

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