简体   繁体   English

如何在Rails4中查看Excel工作表而无需下载/使用GoogleDoc / Microsoft Office文档

[英]How to view excel sheets in rails4 without downloading/using googledoc/microsoft office docs

In my rails-4 application, I need to show the excel(xls,xlsx) file contents without using external services. 在我的rails-4应用程序中,我需要显示excel(xls,xlsx)文件内容而不使用外部服务。 The external services will be available if the documents are public. 如果文件是公开的,则可以使用外部服务。 Without downloading I need to open the excel attachments. 不下载,我需要打开excel附件。 Is there any way to do this in rails. 有什么办法可以做到这一点。 Please help. 请帮忙。

Thanks in advance. 提前致谢。

While you are using ruby on rails , you can open the images , pdf without download. 当您在Rails上使用ruby时 ,可以打开图像pdf,而无需下载。 But when we talk about xlsx,xlx,doc etc format file we need to download these first then we can open these in related application. 但是,当我们谈论xlsx,xlx,doc等格式文件时,我们需要先下载这些文件,然后才能在相关应用程序中打开它们。 But if there is any of client requirement to open your data in same as those application. 但是,如果有任何客户要求打开与那些应用程序相同的数据。 you need to develop a template where you can edit the data like as excel,word etc where user can edit in same look and feel. 您需要开发一个模板,您可以在其中编辑excel,word等数据以便用户以相同的外观进行编辑。

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

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