How to use Dynamic Path for crystal reports?
Hello,
I'm trying to design a desktop-application
which supports crystal reports.
but I also have to provide a dynamic path for the
reports(I use CR v10), I mean, I want to put the
reports in a folder called (Reports) for example and want
this folder to be in the application path.
but crystal reports claims me to write a frank static path
for the reports.
Help, please.
Re: How to use Dynamic Path for crystal reports?
You can do that. It is very easy.
If you are using VB 2005, the following method returns a string containing the path the application starts at, regardless of where the application is located:
Code:
Application.StartupPath
Now, check THIS LINK and carefully follow the instructions.