2013-01-17 85 views
0

现在我打开Windows 8 Metro应用程序中的word文档。我不知道这是否可能。但我已经打开Windows 8 Metro应用程序中的word文档。例如:使用iPad在Gmail中打开word文档。在Windows 8地铁应用程序中打开word文档

这里是我的代码,

string file = @"Assets\sample.docx"; 

var getFile = await Windows.ApplicationModel.Package.Current.InstalledLocation.GetFileAsync(file); 
     if (getFile != null) 
     { 
      var success = await Windows.System.Launcher.LaunchFileAsync(getFile); 
     } 

这是打开一个Word文件。但我已经打开了Windows 8 metro应用程序。

在此先感谢。

回答

2

您应该能够使用file activation从Windows 8 Metro/Windows Store应用程序打开Word文件。由于.docx或.doc文件已经与Word程序关联,因此应该将Word作为单独的进程启动,并在您的应用程序中打开Word中的文件。

但是,它不会在您的应用程序中运行Word。这是不可能的。

+0

是否有任何最好的方式来打开windows 8 metro应用程序中的word文档,除了发射器 –

相关问题