【问题标题】:Open file from isolatedstorage in default app (Windows Phone 8)在默认应用程序(Windows Phone 8)中从隔离存储打开文件
【发布时间】:2014-06-08 15:16:24
【问题描述】:

我有一个关于在我的 Windows Phone 8 C# 应用程序中打开存储在 IsolatedStorage 中的文件的问题(在我的例子中是 file.txt 文件) 并在集成在 WP 8 中的 Office 套件中打开它。

我想出了这个:

 Windows.System.Launcher.LaunchUriAsync(new System.Uri("ms-word:" + (new Uri("file.txt", UriKind.Relative))));

它可以毫无问题地打开 Office Word,但它挂在“文件不存在”消息并退出.. 有什么建议吗?谢谢:)

【问题讨论】:

标签: c# windows-phone-8 isolatedstorage isolatedstoragefile


【解决方案1】:

你的 Uri 是错误的。应该是new Uri("ms-word:isostore:file.txt", UriKind.Absolute); 但是,仍然无法打开该文件。不知道为什么。

编辑:这是不可能的。您只能从 OneDrive 打开办公电子邮件附件或办公文档。

http://answers.microsoft.com/en-us/winphone/forum/wp8-wppersonal/open-word-and-excel-files-from-sd-card/23218c41-b72b-49df-9529-5e85a1912bc5

【讨论】:

  • 是的,其实我也来过。当我尝试打开 docx 文件时,它甚至会这样做......我现在迷路了 :( 仍然非常感谢 :)
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多