需要设置Web项目以实施Excel [英] Need to Setup Web Project to Implement Excel

查看:91
本文介绍了需要设置Web项目以实施Excel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要开发一个Intranet Web应用程序,该应用程序从Oracle数据库中获取数据并更新包含数据透视表的现有excel电子表格,然后将其呈现给用户.我正在使用Visual Studio 2008/C#.我想设置一个Web项目,但不确定如何设置Excel内容.我应该使用哪种excel模型?我对此并不陌生,请具体说明.用户将使用Microsoft Office Excel2007.感谢所有能够提供帮助的人.

I need to develop an Intranet Web application that fetches data from an Oracle database and updates an existing excel spreadsheet that contains a pivot table, then present it to the user. I''m using Visual Studio 2008/ C#. I want to setup a web project and I''m not sure how to setup the excel stuff. What excel model should I use? I''m new to this so please be specific. The users will be using Microsoft Office Excel 2007. Thanks to all who can help.

推荐答案

本文可能对您有所帮助

使用C#创建Excel文档 [
This Article may Help you

Using C# to Create an Excel Document[^]


另外一种方法是使用Interop来创建/操作工作簿.参见:
-
如何:使用COM Interop创建Excel电子表格 [ ^ ]
- Microsoft.Office.Interop.Excel命名空间 [ ^ ].

但是,如果这是现有的工作簿,为什么不简单地在工作簿中添加到数据库的连接并使用该连接来刷新数据.例如:创建,编辑,并管理与外部数据的连接 [
Also one way is to use Interop to create/manipulate the workbook. See:
- How to: Use COM Interop to Create an Excel Spreadsheet [^]
- Microsoft.Office.Interop.Excel Namespace[^].

However if this is an existing workbook, why not simply add a connection to the database in the workbook and use that to refresh the data. For example: Create, edit, and manage connections to external data[^]


这篇关于需要设置Web项目以实施Excel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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