V
Vincent Haakmat
My appconfig has this line in it:
<appSettings>
<!--
The Location of the reports.
-->
<add key="ReportsLocation" value="C:\Reports\" />
However I am not able to retrieve this line value
my code to retrieve it is:
string
repname=System.Configuration.ConfigurationSettings.AppSettings.GetValues("ReportsLocation").ToString();
reports1.ReportName = repname + "SQL_VehSchedule.rpt";
the value returned is "System.String[]SQL_VehSchedule.rpt" not
"c:\Reports\VehicleSchedule.rpt"
What am I typing wrong ?
Regards,
Vincent
<appSettings>
<!--
The Location of the reports.
-->
<add key="ReportsLocation" value="C:\Reports\" />
However I am not able to retrieve this line value
my code to retrieve it is:
string
repname=System.Configuration.ConfigurationSettings.AppSettings.GetValues("ReportsLocation").ToString();
reports1.ReportName = repname + "SQL_VehSchedule.rpt";
the value returned is "System.String[]SQL_VehSchedule.rpt" not
"c:\Reports\VehicleSchedule.rpt"
What am I typing wrong ?
Regards,
Vincent