c# - WPF DocumentViewer throw exception during scrolling -
I have a problem, that WPF-DocumentViewer throws an exception when scrolling through the document This document was loaded manually And it has been shown correctly.
I get the following error message: Unknown URI-prefix .
generated by XPS
thanks !!
This problem occurred because the XpsDocument object referenced There is a need to be able to use the additional required resources ( XpsDocument xpsDocument; in that sample code) Otherwise GC will collect XpsDocument object and document weaver will not be able to work.
Just as an FYI, you can also see this information (see example code and comments which are given).
Comments
Post a Comment