使用Word Interop在内存中启动wordML文件 [英] Launch a wordML file in memory with Interop of Word

查看:106
本文介绍了使用Word Interop在内存中启动wordML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

有没有在不保存文件的情况下以单词形式启动XSLT转换的结果吗?

换句话说,如果我有XMLdocument(wordML文件),是否可以

现在我要执行此操作,但我需要始终将文件保存在用户的临时文件夹中,并通过Word互操作启动文件后.

感谢您的帮助.

如果我没有在好的部分发帖,对不起.


Tom

解决方案

<关于与Office应用程序(如Word)自动化有关的问题和讨论,请参见

<身体>
Process.Start( " Winword" " C:\ file.xml"


Hi,

Is there anyway to launch in word the result of an XSLT transformation without saving the file?

In other word if I have a XMLdocument (wordML file) is it possible to launch trought the com Interop of word?

Now I do this but I'm need to always save the file in the temp folder of the user and after I launch it trough the Interop of Word.

Thanks for Your help 

If I don't post to the good section sorry.


Tom

解决方案

For questions and discussions relating to automating Office applications (like Word) please see http://msdn.microsoft.com/newsgroups/default.aspx?dg=microsoft.public.officedev&lang=en&cr=US

If you want to use just .NET you could use the Process class to launch Word telling it to load the xml file.  For example:

            Process.Start("Winword", @"C:\file.xml");  
 


这篇关于使用Word Interop在内存中启动wordML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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