Changed an Error Message to provide the location where the error occured.

Changed StepLevel property for Cautions and Notes to reduce the probability that notes or cautions will be split over a page break.
Added IsNumbered Property to aid in pagination.
This commit is contained in:
Rich
2013-05-13 10:41:52 +00:00
parent 06990b5c13
commit 944868a0b4
2 changed files with 28 additions and 7 deletions

View File

@@ -505,8 +505,10 @@ namespace VEPROMS.CSLA.Library
get { return MSWordToPDF._FormForPlotGraphics; }
set { MSWordToPDF._FormForPlotGraphics = value; }
}
private static SectionInfo _MySection;
public static string GetDocPdf(SectionInfo sect, Color overrideColor)
{
_MySection = sect;
DocumentInfo mydoc = sect.MyContent.MyEntry.MyDocument;
UpdateDocPdf(mydoc, overrideColor,sect);
string fileName = GetFileName(sect);
@@ -884,7 +886,13 @@ namespace VEPROMS.CSLA.Library
}
catch (Exception ex)
{
_MyLog.Error("Could not set margins", ex);
if (_MySection != null)
{
_MyLog.ErrorFormat("<<< ERROR >>> MSWord could not set margins\r\n==>'MSWord could not set margins',{0},'{1}','{2}'"
, _MySection.ItemID, _MySection.MyDocVersion.MyFolder.Name, _MySection.ShortPath);
}
else
_MyLog.Error("Could not set margins", ex);
}
}
}