我使用XpsDocument方法将FixedDocumentSequence转换为FixedDocumentSequence(在转换器中)。
现在,我需要代码后面的XpsDocument.Uri来释放它的文件锁:
System.IO.Packaging.PackageStore.GetPackage(xpsUri).Close();
System.IO.Packaging.PackageStore.RemovePackage(xpsUri);和问题是:如何访问代码后面的XpsDocument (或其Uri)。
发布于 2013-12-08 07:18:59
与其从后面的代码中处理它,您应该只在转换器中使用dispose it as soon as you get it converted to FixedDocumentSequence,因为一旦转换成固定的文档序列,就不需要保存它了。
https://stackoverflow.com/questions/20450678
复制相似问题