[UWP]在UWP应用程序中使用Excel文件

[UWP]在UWP应用程序中使用Excel文件

问题描述:

我正在尝试在Visual Studio 2017中使用XAML和C#编写的Windows应用商店UWP应用中使用Excel电子表格。

I am trying to use an Excel spreadsheet in a Windows Store UWP app that I am writing using XAML and C# in Visual Studio 2017.

我尝试过的XAML代码如下:

The XAML code I have tried is as follows:

<HyperlinkButton NavigateUri="Assets/DL6WU.xls" Content="Click to open" HorizontalAlignment=

&QUOT;左&QUOT;余量= QUOT; 145,216,0,0&QUOT; VerticalAlignment =" Top" />

"Left" Margin="145,216,0,0" VerticalAlignment="Top"/>



然而,当我运行调试并单击超链接按钮我收到一个消息框,指出"你需要一个新的应用程序才能打开这个ms-resource"。然后是"找不到应用"。

However, when I run debug and click on the hyperlink button I get a message box stating "You will need a new app to open this ms-resource" and then "No app found".

有任何想法吗?

Nigel ..

Nigel ..

我正在尝试在Visual Studio 2017中使用XAML和C#编写的Windows应用商店UWP应用中使用Excel电子表格。

I am trying to use an Excel spreadsheet in a Windows Store UWP app that I am writing using XAML and C# in Visual Studio 2017.

XAML我试过的代码如下:

The XAML code I have tried is as follows:

<HyperlinkButton NavigateUri="Assets/DL6WU.xls" Content="Click to open" HorizontalAlignment=

&QUOT;左&QUOT;余量= QUOT; 145,216,0,0&QUOT; VerticalAlignment =" Top" />

"Left" Margin="145,216,0,0" VerticalAlignment="Top"/>

然而,当我运行调试并点击超链接按钮时,我得到一个消息框说明"你需要一个新的应用程序来打开这个ms-resource"

However, when I run debug and click on the hyperlink button I get a message box stating "You will need a new app to open this ms-resource"

有什么想法吗?