Aspose.Words.Examples.CSharp.Rendering_and_Printing.ReceiveNotificationsOfFont.HandleDocumentWarnings.Warning C# (CSharp) Method

Warning() public method

Our callback only needs to implement the "Warning" method. This method is called whenever there is a Potential issue during document procssing. The callback can be set to listen for warnings generated during document Load and/or document save.
public Warning ( WarningInfo info ) : void
info WarningInfo
return void
            public void Warning(WarningInfo info)
            {
                // We are only interested in fonts being substituted.
                if (info.WarningType == WarningType.FontSubstitution)
                {
                    Console.WriteLine("Font substitution: " + info.Description);
                }
            }
        }
ReceiveNotificationsOfFont.HandleDocumentWarnings