B2017-260 - Add a prefix to the temporary MSWord section file names including the SQL server name and the database name.
This commit is contained in:
@@ -19,6 +19,7 @@ using Volian.Controls.Library;
|
||||
using DescriptiveEnum;
|
||||
using Volian.Base.Library;
|
||||
using Volian.Print.Library;
|
||||
|
||||
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
|
||||
|
||||
namespace VEPROMS
|
||||
@@ -224,7 +225,6 @@ namespace VEPROMS
|
||||
Volian.MSWord.WordDoc.KillWordApps();
|
||||
// cleanup from previous run:
|
||||
Volian.Base.Library.TmpFile.RemoveAllTmps();
|
||||
|
||||
if (VlnSettings.DebugMode)
|
||||
{
|
||||
//use local data (for development/debug mode)
|
||||
@@ -312,6 +312,8 @@ namespace VEPROMS
|
||||
displayBookMarks.SetupBookMarks();
|
||||
DateTime dtSunday = DateTime.Now.AddDays(-((int)DateTime.Now.DayOfWeek));
|
||||
string c = Database.DBServer;
|
||||
// D2017-260 - Use a prefix of the server name combined with the database name for temporary MSWord sections
|
||||
DSOFile.TempFilePrefix = System.Text.RegularExpressions.Regex.Replace(System.Text.RegularExpressions.Regex.Replace(c, @"([^[\]]*) \[.*\]", "$1"), @"[\#\~\%\@\[\]\(\)\{\}\-. \\*<>:;""/?|]+", "_");
|
||||
ChangeLogFileName("LogFileAppender", Database.ActiveDatabase + " " + dtSunday.ToString("yyyyMMdd") + " ErrorLog.txt");
|
||||
_MyLog.InfoFormat("\r\nSession Beginning\r\n<===={0}[SQL:{1:yyMM.ddHH}]====== User: {2}/{3} Started {4} ===============>"
|
||||
, Application.ProductVersion,Database.RevDate, Environment.UserDomainName,Environment.UserName, DateTime.Now.ToString("dddd MMMM d, yyyy h:mm:ss tt"));
|
||||
|
Reference in New Issue
Block a user