转换的Open XML的Excel文件为HTML [英] Convert Open XML Excel files to HTML

查看:463
本文介绍了转换的Open XML的Excel文件为HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发的打印解决方案是不适合我,因为它需要安装的Office。 打开XML文档查看器是解决方案,将Word文件(.DOCX)为HTML格式由XSLT转换,但它仅适用于.DOCX。可同样的技术可用于Excel的小号preadsheets文件?

I'm developing printing solution for MS Office 2007. Office automation is not right for me, because it requires Office to be installed. Open XML Document Viewer is solution for converting Word files (.docx) to HTML format by XSLT transform, but it works only for .docx. Can the same technology be used for Excel spreadsheets files?

推荐答案

您可以使用本文 XSL改造US preadsheetML为HTML 为出发点来开发你自己的转换。您还可以在 OpenXML的开放源码XSLT文件/ ODF翻译外接程序的Office 得到一些对事物的想法,你可能需要在OOXML之外的任何转换来解释。有一件事要记住的是使得S preadsheetML更类同presentationML比是Wordpro​​cessingML中的文件结构封装(即每一个表,有一个单独的文件)。

You could use this article XSL transformation of SpreadsheetML to HTML as a starting point to develop your own transform. You can also look at the open source XSLTs in OpenXML/ODF Translator Add-ins for Office to get some ideas on things you may need to account for in any conversion outside of OOXML. The one thing to keep in mind is that SpreadsheetML is more similiar to PresentationML than it is to WordprocessingML in file structure inside the package (i.e. for every sheet, there is a seperate file).

如果您从.NET这样做,我会从LINQ而不是XSLT做到这一点。我从DrawingML做转换成SVG和LINQ可以很容易(在similiar功能,XSLT,住在.NET等方面)

If your doing this from .NET, I'd do this from LINQ instead of XSLT. I've done transforms from DrawingML into SVG and Linq makes it easy (in terms of similiar functionality to XSLT, staying within .NET, etc.)

这篇关于转换的Open XML的Excel文件为HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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