在Windows Phone 7的编程方式打开的docx [英] Open docx in Windows Phone 7 programmatically

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

问题描述

我想开发打印服务的Windows Phone 7在应用程序中的应用程序,用户可以选择的文件打印出来。请问有什么办法可以在WP7打开DOCX,XLSX,等编程?我知道在iPhone上的WebView支持浏览多种文件类型。有没有什么WP7相似?

I would like to develop an app for printing service in Windows Phone 7. In the app, the users can select file to print out. Is there any way to open docx, xlsx, etc. in WP7 programmatically? I know in iPhone the WebView supports to view many file types. Is there anything similar in WP7?

推荐答案

如果您正在寻找打开的Office文档,请尝试使用<一个href="http://msdn.microsoft.com/en-us/library/microsoft.phone.tasks.webbrowsertask%28v=VS.92%29.aspx"相对=nofollow> WebBrowserTask 导航到该文件。有一个很好的机会,它将与Office打开。

If you are looking to open the document in Office, try using the WebBrowserTask to navigate to the document. There's a good chance it will open with Office.

如果你想的渲染的文件你自己,你很倒霉。你可以尝试导航到一个WebBrowser控件的文档,但我不认为这是支持的。

If you want to render the document yourself, you are very much out of luck. You could try navigating to the document in a WebBrowser control, but I don't think it's supported.

此外,没有任何印刷的API所以就没有办法打印。如果这是一个企业应用程序(即内部贵公司),你可能会认为可以接受docx文件和打印它们在本地服务器上编写一个Web服务。然后,您可以调用该服务,从您的应用程序打印文档。

Besides, there are no printing APIs so there would be no way to print it. If this is an enterprise application (ie. internal to your company), you might consider writing a web service on a local server that can accept DOCX files and print them. You could then call that service from your app to print the docs.

这篇关于在Windows Phone 7的编程方式打开的docx的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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