我们正尝试如下创建可用的xpspath的xpsdocument。
XpsDocument xpsDoc = new XpsDocument(XPSFullPath, FileAccess.Read);
该异常发生在下面的行
mDocPaginator = mXpsDoc.GetFixedDocumentSequence().DocumentPaginator;
以下是异常详细信息。 (我在上传图片时遇到问题,因此在文本中给出了例外)
ex = {"Exception has been thrown by the target of an invocation."}
Data = {System.Collections.ListDictionaryInternal}
HResult = -2146232828
InnerException = {"Insufficient memory to continue the execution of the program."}
Message = "Exception has been thrown by the target of an invocation."
Source = "mscorlib"