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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user