Hey, im currently developing an application, one of the features of the app is that it creates pdf files, but i want the files to be saved in a sub directory of where the application is installed, but how do i code that? thanks
Hey, im currently developing an application, one of the features of the app is that it creates pdf files, but i want the files to be saved in a sub directory of where the application is installed, but how do i code that? thanks
You can use System.Reflection.Assembly.GetExecutingAssembly().Location. Just remove the application name part to get the directory portion and then add the subfolder you need.
The need to optimize rises from a bad design.My articles[^]