[UWP]在UWP应用程序中使用Excel文件 [英] [UWP]Using an Excel file in a UWP App

查看:554
本文介绍了[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; 145,216,0,0" 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; 145,216,0,0" 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"

有什么想法吗?


这篇关于[UWP]在UWP应用程序中使用Excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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