本文介绍了如何FlowDocument的出口DOC(x)或XLS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的节目,我产生的FlowDocument 一些报告和的DocumentViewer 控件中显示它。
现在我需要添加更多的出口机会。我使用iTextSharp的以PDF导出,我可以保存到本机XPS。我可以直接将文档保存到任何Office格式,DOC或XLS。或者,也许有人在DOC或XLS从PDF / XPS转换一个良好图书馆谁知道呢?

In my program I generate some reports in FlowDocument and display it with DocumentViewer control.Now I need to add more export opportunities. I use iTextSharp to export in PDF, and I can save to XPS natively. Can I save a document directly to any office formats, DOC or XLS. Or maybe someone knows of a good library for converting from PDF / XPS in DOC or XLS?

推荐答案

我找到了解决办法。正如我不能自动从WPF导出到文件,我复制我的页面布局。这真是真棒,不要求安装的MSOffice创建的Word 2007/2010文件简单的库。

I found a solution. As I can't export to Doc from WPF automatically, I reproduced my page layout with DocX Library. This is really awesome and simple library that don't required MSOffice installed to create Word 2007/2010 files.

这篇关于如何FlowDocument的出口DOC(x)或XLS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 01:20