将HTML和Javascript嵌入到Word 2010文档中.

问题描述:

我想知道是否以及然后如何将HTML和javascript嵌入到Word 2010文档中,以便例如根据外部文件的内容更改字体. HTML和javascript当然不会显示在word文档中,只是潜伏在打开文档或单击文档中的某些项目时运行.例如,

有人吗?

I''d like to know if, and then how, to embed HTML and javascript into a Word 2010 document so as to for instance change a font depending on contents of an external file. The HTML and javascript of course will not show in the word document, thll just be lurking and will run when the document is opened or when some item in the document is clicked, say.

Anybody?

您可以使用 PHPDocX 将HTML嵌入文字中剥离所有javascript.
You may embed HTML in word using PHPDocX but that would strip al the javascript.