This Developer Sample provides a toolbar with two commands that can help identify map contents that may contribute to printing or export problems. The two commands, Detect Raster and Count Masks, run inside of the ArcMap application and can be used on any map document.
The Detect Raster command creates a report listing the raster layers found in each dataframe of the map. The report also includes a list of layers using symbology that may force a layer to rasterize on output, a common cause of large export file sizes and unexpected printing problems.
The Count Masks command creates a report with counts for each layer being used for ArcMap's variable-depth masking functionality. Variable depth masking can lead to output problems when a map with many masks is exported to a vector-based graphics format or when the map is printed. The report from the Count Masks command can be used to identify masking layers that may be using overly-complex mask types or layers that contain an excessive number of mask polygons.
How to use:
Key CoClasses:Map, PageLayout, FeatureLayer
Key Interfaces: ILayerMasking
Key Members:ILayerMasking::UseMasking, ILayerMasking::MaskingLayers