This documentation is archived and is not being maintained.

Troubleshooting Exceptions: System.Windows.Xps.XpsWriterException

An XpsWriterException exception is thrown when a method of either an XpsDocumentWriter or a VisualsToXpsDocument object is called that is incompatible with the current state of the object.

For example, this exception is thrown if the CancelAsync method of either object type is called when the object is not performing an asynchronous write operation.

Show: