简体   繁体   English

Xamarin.Forms电子表格操作

[英]Xamarin.Forms Spreadsheet Manipulation

So far I have a Xamarin.Forms application working for Android and IOS. 到目前为止,我有一个适用于Android和IOS的Xamarin.Forms应用程序。 What I have right now is getting spreadsheets from Google Drive for user after he login with his Google Account. 我现在所拥有的就是在用户使用Google帐户登录后从Google云端硬盘获取电子表格。

What I am trying to achieve is provide an option for user to edit spreadsheet that he select. 我要实现的目的是为用户提供一个编辑他选择的电子表格的选项。 So I'm displaying a list of spreadsheets to which this account have access (from Google Drive) and then I want to load it and allow user to manipulate it (rows/cells) and save it, so to the end I have an object which represent sheet with updated values. 因此,我要显示一个具有该帐户访问权限的电子表格的列表(从Google云端硬盘访问),然后我要加载该电子表格,并允许用户对其进行操作(行/单元格)并保存,所以最后我有了一个对象代表具有更新值的工作表。

Some extra information, after customer choose which spreadsheet he want to use, in code I am able to read it and what I receive is an object from type List<List<object>> , which represent collection with data from rows and columns. 在客户选择他要使用的电子表格之后,一些额外的信息使我能够在代码中读取它,并且我收到的是List<List<object>>类型的List<List<object>> ,该List<List<object>>表示具有行和列数据的集合。

I am not sure what framework I can use for Xamarin.Forms and loading this type of data, also to provide different functionalities similar to "mail merge". 我不确定我可以用于Xamarin.Forms以及加载此类数据的框架,还可以提供类似于“邮件合并”的不同功能。

One from the frameworks I went through was DevExpress, but this wouldn't work in my case, because of the data types I have. 我经历的框架之一是DevExpress,但由于我拥有的数据类型,因此在我的情况下不起作用。 I prefer if framework that you suggest is free. 我希望您建议的框架是免费的。

I was researching if it's possible to load Google Sheets on phone and allow customer to edit data, but still no information so far. 我正在研究是否可以在手机上加载Google表格,并允许客户编辑数据,但到目前为止仍然没有信息。

So generally what I need is a suggestion what tool/framework I can use or is it there any other approach for having same result. 因此,通常我需要建议我可以使用什么工具/框架,或者是否有其他方法可以达到相同的结果。

Thanks in advance 提前致谢

What I found is that when I get elements from Google Drive, they have property WebViewLink , which value is link for spreadsheet, where you can edit it. 我发现,当我从Google云端硬盘获取元素时,它们具有WebViewLink属性,该值是电子表格的链接,您可以在其中进行编辑。 It will redirect you to online Google Spreadsheets or locally installed app (Sheets). 它将重定向到在线Google Spreadsheets或本地安装的应用程序(表格)。 So now, instead of looking for framework or building my own logic, I am reusing Google Spreadsheets, which I find for much better option, for my case. 因此,现在,我不再使用框架或建立自己的逻辑,而是重用了Google Spreadsheets,我发现它对于我的情况来说是一个更好的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM