Hello guys first of all apologize for asking such a simple and yet redundant question but it seems my case is kinda bit different where googling failed to provide answers. I have a solution with 2 projects say proj1 and proj2 where proj1 is a winform application and proj2 is a classlibrary application.proj1 is sitting here
C:\Documents and Settings\myname\My Documents\Visual Studio 2005\Projects\proj1\proj1
ane the classlibrary is here
C:\Documents and Settings\myname\My Documents\Visual Studio 2005\Projects\proj1\proj2
Now i have a report in a subfolder Report where i have my crystalreport and other stuffs i need to have this root path of proj1
C:\Documents and Settings\myname\My Documents\Visual Studio 2005\Projects\proj1\proj1
so that i append @"Report\myreport.rpt"
to it. I believe with that it's supposed to be relative path on the deployed machine.correct me if I'm wrong.the main idea is to have relative path to the Report folder at
C:\Documents and Settings\myname\My Documents\Visual Studio 2005\Projects\proj1\proj\Report.
from all i searched online
like Environment.CurrentDirectory
or Application.StartupPath
or Application.ExecutablePath
or System.Reflection.Assembly.GetExecutingAssembly().Location
are just given me either the bin/proj1.exe or the debug folder.
i just can't figure out how to do that
thank you for reading this.oh yeah! and for your kind answer. PS: using C#2.0