B2023-024 added a method to all us to remove a section PDF from the pdf print cache
This commit is contained in:
@@ -71,6 +71,19 @@ namespace VEPROMS.CSLA.Library
|
||||
if (_CacheByPrimaryKey.ContainsKey(key)) return _CacheByPrimaryKey[key][0];
|
||||
return null;
|
||||
}
|
||||
// B2023-024 PROMS was using old cached PDF data when printing Word sections.
|
||||
// Added this method to clear the PDF print cache for a specified section.
|
||||
// This is called from RemovePDFFromCache() in PDFExt.cs
|
||||
protected static void RemoveFromCachedByPrimaryKey(int docID, int debugStatus, int topRow, int pageLength, int leftMargin, int pageWidth)
|
||||
{
|
||||
ConvertListToDictionary();
|
||||
string key = docID.ToString() + "_" + debugStatus.ToString() + "_" + topRow.ToString() + "_" + pageLength.ToString() + "_" + leftMargin.ToString() + "_" + pageWidth.ToString();
|
||||
if (_CacheByPrimaryKey.ContainsKey(key))
|
||||
{
|
||||
_CacheByPrimaryKey.Remove(key);
|
||||
}
|
||||
return;
|
||||
}
|
||||
#endregion
|
||||
#region Business Methods
|
||||
private string _ErrorMessage = string.Empty;
|
||||
|
Reference in New Issue
Block a user