Allow update of formats from PROMS interface
This commit is contained in:
@@ -305,7 +305,7 @@ namespace DataLoader
|
||||
//TextConvert.ResetSpecialCharacters();
|
||||
System.Diagnostics.Process[] wordProcesses = WordDoc.WordProcesses;
|
||||
MyFrmErrors.Clear();
|
||||
if (wordProcesses.Length > 0)
|
||||
if (cbFormatsOnly.Checked == false && wordProcesses.Length > 0)
|
||||
{
|
||||
AddError("{0} copies of MS Word are running", wordProcesses.Length);
|
||||
if (MessageBox.Show("MS Word is Running and must be stopped before proceeding.\n\nStop MS Word?", "MS Word is Running", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
@@ -324,7 +324,7 @@ namespace DataLoader
|
||||
MessageBox.Show(@"Format files are taken from c:\development\fmtall");
|
||||
ldr._FmtAllPath = @"c:\development\fmtall";
|
||||
ldr._GenmacAllPath = @"c:\development\genmacall";
|
||||
ldr.LoadAllFormats();
|
||||
Format.UpdateFormats(@"c:\development\fmtall",@"c:\development\genmacall"); //ldr.LoadAllFormats();
|
||||
MessageBox.Show("Formats Loaded");
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user