English 中文(简体)
A way to display an excel 2010 document in an asp.net web application
原标题:

I am wanting to display an Excel 2010 document in an asp.net web application. This document uses the new slicer functionality which I want to be available to the user.

I know that Excel 2010 docs can be used within SharePoint by inserting a web part which uses Excel services.

But can it be achieved without SharePoint ? Or can it be achieved using the the Excel services API to get the document from SharePoint and then somehow get it to the browser in .net?

Thanks, Tom.

问题回答

I am not familiar with the Slicer functionality but.... Excel cells are available via a REST interface within SharePoint 2010 (not 2007). That may help you get to the data you want to expose.

More information on the Excel and Rest with SharePoint 2010 here.

From a non SharePoint perspective, the Skydrive based Web Office apps have Excel functionality. It is possible you may be able to impersonate a user, send a HTTP request to try and bring back the Excel data for display. You could possibly use an IFrame for display also. Having said that, I have never tried it and not sure how well it would work.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签