打开XML阅读XML [英] Open XML reading XML

查看:72
本文介绍了打开XML阅读XML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题,我希望有人可以帮助我。我将XML存储在数据库中,我需要在一个word文档(docx)的报告上呈现它。我在open xml的run属性中找到的只是Text。有谁知道如何通过打开xml显示xml?



谢谢

Jerry

I have a problem that I hope someone can assist me in. I have XML stored in a database and I need to render it on a report that is a word document (docx). All I can find in the run properties of open xml is Text. Does anyone know how to display xml through open xml?

Thanks
Jerry

推荐答案

首先,请查看我过去的答案。当您希望直接使用Office文档时,它们中的一部分用于处理这些情况。我没有这样做(为什么?),但我知道在哪里获得一些代码。请参阅:

将Office文档转换为PDF而无需互操作 [ ^ ],

你好我怎么能使用c#.net 在Windows应用程序中显示word文件[ ^ ],

在不使用Interop.word dll的情况下读取word文件...不想在IIS中安装单词。 [ ^ ]。



-SA
To start with, please see my past answers. Some part of them is devote to the cases when you want to work with Office documents directly. I did not do it (why?), but I know where to get some code. Please see:
Convert Office-Documents to PDF without interop[^],
Hi how can i display word file in windows application using c#.net[^],
Read a word file without using Interop.word dll...Do not want to install word in IIS..[^].

—SA


您可以尝试使用 NPOI [ ^ ],它是Apache POI到.Net的端口。



最好的问候

Espen Harlinn
You could try to use NPOI[^], it''s a port of Apache POI to .Net.

Best regards
Espen Harlinn


这篇关于打开XML阅读XML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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