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