Added Error Log if Word File Could not be created

Select section node after it is created
Don't allow an empty procedure to be printed
This commit is contained in:
Rich
2012-04-05 20:57:44 +00:00
parent ee66befc6a
commit 8cb0c78730
3 changed files with 7 additions and 2 deletions

View File

@@ -340,6 +340,7 @@ namespace VEPROMS.CSLA.Library
}
catch (Exception ex)
{
_MyLog.Error("***** Could not create " + _MyFile.FullName, ex);
Console.WriteLine(ex.Message);
}
}
@@ -526,9 +527,7 @@ namespace VEPROMS.CSLA.Library
//ItemInfo sect = doc.DocumentEntries[0].MyContent.ContentItems[0];
return ToPDFReplaceROs(sect, false, roids);
}
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
public static string ToPDFReplaceROs(ItemInfo sect, bool openPdf, List<string> roids) //, System.Drawing.Color overrideColor, System.Windows.Forms.Form myForm)
{
string fileName = GetFileName(sect);