Added Edit/Initialized config to the Documents
Check to see if MSWord changes should be saved if PROMS is closing
This commit is contained in:
@@ -270,7 +270,9 @@ namespace DataLoader
|
||||
}
|
||||
private int SaveWordDoc(string temppath, string stype, string sectName)
|
||||
{
|
||||
return SaveWordDoc(temppath, String.Empty, stype, null, sectName);
|
||||
ConfigInfo ci = new ConfigInfo(null);
|
||||
ci.AddItem("Edit", "Initialized", "true");
|
||||
return SaveWordDoc(temppath, String.Empty, stype, ci, sectName);
|
||||
}
|
||||
private int SaveTheDoc(string temppath, string title, ConfigInfo ci, string ascii)
|
||||
{
|
||||
|
@@ -70,6 +70,7 @@ namespace DataLoader
|
||||
ConfigInfo ci = new ConfigInfo(null);
|
||||
string title = null; // for docname, remove the '.lib', i.e. substring(0,8)
|
||||
DateTime dts = DateTime.Now;
|
||||
ci.AddItem("Edit", "Initialized", "true");
|
||||
string tmpRtfFileName = GetLibDocData(fi, ci, ref title);
|
||||
int Docid = SaveWordDoc(tmpRtfFileName, title, null, ci, string.Empty);
|
||||
File.Delete(tmpRtfFileName);
|
||||
|
Reference in New Issue
Block a user