如何在 Windows Phone 8 中打开 pdf 文件? [英] How to open pdf file in Windows Phone 8?

查看:21
本文介绍了如何在 Windows Phone 8 中打开 pdf 文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序中有一些 pdf 文件(项目文件),我想如何在 Adob​​e Reader 或其他中打开,但我不知道如何打开.

I have some pdf files inside (the project files) my app and I wanted how to open in Adobe Reader or the other, but I don't know how.

在 iOS 中更简单,在 Android 中我知道如何,但在 WP8 中我不知道如何.

In iOS is more easy and in Android I know how, but I don't know how in WP8.

我是 Windows Phone 8 的新手:/

I'm new in Windows Phone 8 :/

谢谢大家!

推荐答案

你必须使用 LaunchFileAsync Launcher 类的方法.示例:

You have to use the LaunchFileAsync method of Launcher class. Example:

// Access the file.
StorageFile pdfFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync("file.pdf");

// Launch the pdf file.
Windows.System.Launcher.LaunchFileAsync(pdfFile);

您会在此处找到更多信息:

You will find more info here:

自动启动应用使用 Windows Phone 8 的文件和 URI 关联

这篇关于如何在 Windows Phone 8 中打开 pdf 文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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