'宣言 Public ReadOnly Property OverlayReplacements As System.Collections.IDictionary
public System.Collections.IDictionary OverlayReplacements {get;}
'宣言 Public ReadOnly Property OverlayReplacements As System.Collections.IDictionary
public System.Collections.IDictionary OverlayReplacements {get;}
This property is useful when implementing export filters.
Reports that contain page counts or group page counts save special tags in the report body. When the report finishes rendering, these tags need to be replaced with the actual page counts. Filters can get the list of tags and the replacement values using this dictionary. The key-value pairs in the dictionary contain the tags and their replacements.
public class MyTextFilter : ExportFilter { // ... override public void EndReport() { // close output stream Layout layout = _ownerReport.GetLayout(); ReplaceInStream(_exportStream, layout.OverlayReplacements); _exportStream.Close(); } }