将DocumentViewer内容保存到MS Word文档 [英] Save DocumentViewer content to MS Word document

查看:289
本文介绍了将DocumentViewer内容保存到MS Word文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,

我已经开发了WPF应用程序.该工具将在DocumentViewer中显示报告.

背景:我正在将UserControl内容转换为FixedDocument,然后将其显示在DocumentViewer中.

问题:DocumentViewer具有默认选项以打印内容.但是我们无法将其另存为MS Document或PDF文件.

到目前为止,我的发现:我可以使用XpsDocument将FixedDocument导出到XPS文件.

有什么方法可以将FixedDocument或DocumentViewer内容导出/保存到MS Word文档?

请提出您的意见/建议.


预先感谢,
问候,
Suresh Kumar.B

Hi Friends,

I have developed a WPF application. This tool will display the report in DocumentViewer.

Background: I am converting a UserControl content in to a FixedDocument and then displays it in the DocumentViewer.

Problem: The DocumentViewer has the default option to print the content. But we cannot save it as a MS Document or PDF file.

My findings so far: I can export the FixedDocument to a XPS file using XpsDocument.

Is there any way to export/save the FixedDocument or DocumentViewer content to a MS Word document?

Please give your openion/suggestions.


Thanks in advance,
Regards,
Suresh Kumar.B

推荐答案

简短答案:如果没有客户端/服务器中的第三方实用程序或MS Word,则不可能.框架本身不这样做.寻找ITextPdf以获得免费的Framework选项.
Short answer: not possible without a third party utility or MS Word in your client/server. The framework itself doesn''t do that. Look for ITextPdf for a free Framework option.


这篇关于将DocumentViewer内容保存到MS Word文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆