如果大型XPS文件约为40MB,则无法使用xps路径创建XPSDocument

时间:2019-03-16 06:14:56

标签: exception xps

我们正尝试如下创建可用的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"

0 个答案:

没有答案