在 Visual Studio 2008 中的 C# Forms 应用程序中编辑 XPS 文件
我想在我的 C# Forms (Visual Studio 2008) 应用程序中打开一个 .xps 文件,然后我想在文档顶部添加一些内容,然后使用不同的名称保存文档。
这是否可以在不创建 WPF 应用程序的情况下实现?
I want to Open a .xps file in my C# Forms (Visual Studio 2008) application and then I want to add some contents on top of the document and then save document with different name.
Is this possible to achieve without creating WPF application?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只是尝试编辑 xps 文档而不显示它,那么是的,您可以跳过 WPF 用户界面。查看 System.Windows.Xps 和 System.Windows.Xps.Packaging 命名空间,用于操作文档。
If you are simply trying to edit the xps document without displaying it, then yes, you can skip the WPF user interface. Check out the System.Windows.Xps and System.Windows.Xps.Packaging namespaces for manipulating the document.