Setting the report path with sample and example
If you will be moving the reports folder or doing other custom modifications and need to change the default report path, then the recommended way of setting the reports / report path is given below:
Izenda.AdHoc.AdHocSettings.ReportsPath = HttpContext.Current.Server.MapPath(".") + "\\AdminReports";
The HttpContext.Current.Server.MapPath will set the directory to be the physical location of the virtual directory of the application and then we have added the subfolder AdminReports onto the path.
So for instance if we created an application called IzendaReports and its physical folder is set to C:\web\applications\izendareports
then this sample will point the reports folder to C:\web\applications\izendareports\adminreports
We recommed setting the path in the postLogin method which is where all of the other client specific settings should be.
If you are not going to use a folder which lives off of the web application's root, then you can use the following:
string path1 = @"C:\Test\reports\";
string path2 = @"C:\Web\SQL Server 2005\adhoc54dailycode\AdminReports";
Izenda.AdHoc.AdHocSettings.ReportsPath = path2;
The @ sign escapes the entire string.