Commit 2bdb92e1 authored by Meelad Vahdat's avatar Meelad Vahdat

-Changed colors of progress section

-Fixed location of where the reporting files are supposed to be located
--They should be located in a "Reporting" folder in the same directory as the .exe
Signed-off-by: Meelad Vahdat's avatarMeelad Vahdat <meelad@melissadata.com>
parent 5d4633e3
......@@ -45,7 +45,7 @@ namespace ListwareDesktop.Reporting
try
{
InCfg = new FileStream(@"..\..\Reporting\ValidDescriptions.cfg", FileMode.Open);
InCfg = new FileStream(@"Reporting\ValidDescriptions.cfg", FileMode.Open);
srCfg = new StreamReader(InCfg);
}
catch (Exception)
......@@ -73,7 +73,7 @@ namespace ListwareDesktop.Reporting
try
{
InCfg = new FileStream(@"..\..\Reporting\ValidFilters.cfg", FileMode.Open);
InCfg = new FileStream(@"Reporting\ValidFilters.cfg", FileMode.Open);
srCfg = new StreamReader(InCfg);
}
catch (Exception)
......@@ -326,7 +326,7 @@ namespace ListwareDesktop.Reporting
public void GenerateReportFile()
{
string chartToAdd = "";
string strHtmlTemplate = File.ReadAllText(@"..\..\Reporting\ReportTemplate.html");
string strHtmlTemplate = File.ReadAllText(@"Reporting\ReportTemplate.html");
strHtmlTemplate = strHtmlTemplate.Replace("[Client]", hd.Client);
strHtmlTemplate = strHtmlTemplate.Replace("[IDENT]", hd.IDENT);
......@@ -380,7 +380,7 @@ namespace ListwareDesktop.Reporting
#endregion for each checked list create a table, create a chart, start the html doc.
File.WriteAllText("Report.html", strHtmlTemplate);
List<string> filePaths = Directory.GetFiles(@"..\..\Reporting").ToList<string>();
List<string> filePaths = Directory.GetFiles(@"Reporting").ToList<string>();
filePaths.AddRange(Directory.GetFiles(Directory.GetCurrentDirectory()));
foreach (string filePath in filePaths)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment