Microsoft Office Web Components 11 Download
- Download OWCAJAXDemo - three.92 KB
Introduction
Office Web Component (OWC) are a group of OLE classes implemented equally ActiveX controls in Microsoft Office 2000, Office XP and Office 2003. This ActiveX controls can be plugged into spider web pages, Visual Bones and VBA forms, Windows forms or programmed in-memory. The OWC can exist used by any COM-compliant Component Object Model programming language. Sometimes in our Awarding we may crave a feature of Excel Spreadsheet with minimum level of functionality in such cases OWC is the solution to our trouble.
Notation: OWC is not available for Blueprint Fourth dimension toolbox in Visual studio .Net.
System Requirement
http://www.microsoft.com/downloads/details.aspx?FamilyId=7287252C-402E-4F72-97A5-E0FD290D4B76&displaylang=en
Or just search for "Office Web Component v11.0 Download" , yeah I trust 'Google' that it would provide us with the exact result if Microsoft does not change the location of the download. The of import signal to note here is, that the server does not require to install microsoft Excel. Neither the customer.
Implementation
Once you accept installed the office web component, employ the tag to insert component control on to your aspx page.
Blocks of code should exist set as way "Formatted" like this:
< object classid =" clsid:0002E559-0000-0000-C000-000000000046" id =" sp" width =" 100%" style =" height: 300px" > < param name =" XMLData" value =" <a></a>" / > < /object >
Note: OWC version 10 and 11 appear disabled in Visual Studio 2005. For more information click
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=114448
Using OWC Activex Control with AJAX:
This is helpful when one wants to save spreadsheet content of OWC into server side database. This requires exposing customer side OWC to server side which is best achieve using Ajax implementation. The OWC renders spreadsheet data into XML data. This xml data is stored in database table. When this xml data is retrieved dorsum to front-stop information technology gets rendered equally spreadsheet data.
Footstep 1
.ASPX
< object classid =" clsid:0002E559-0000-0000-C000-000000000046" id =" sp" width =" 100%" manner =" height: 300px" > < param name =" XMLData" value =" <a></a>" / > < /object > < input blazon =" button" value =" Relieve" onclick =" SaveTemplate()" grade =" ButtonStyle" / >
The above code will insert and OWC command in the page. The control displays the spreadsheet. For storing the data in the database I have used AJAX. The javascript function does the post back to the server. At the same time it saves the XMLData in the server side hidden variable and this data is stored into database.
function LoadTemplate() { endeavor { XMLHttpRequestObject = new ActiveXObject(" Microsoft.XMLHTTP"); var spreadsheet = document.getElementById(" sp"); if(XMLHttpRequestObject) { var documenttype = document.getElementById(" Select1") XMLHttpRequestObject.open up(" POST", " UpdateTemplate.aspx?operation=loadTemplate"); XMLHttpRequestObject.onreadystatechange = part () { if (XMLHttpRequestObject.readyState == four && XMLHttpRequestObject.status == 200) { spreadsheet.XMLData = XMLHttpRequestObject.responseText; } } XMLHttpRequestObject.send(aught); document.getElementById(' <%= lblMessage.ClientID %>').innerText=XMLHttpRequestObject.responseText; } } take hold of(err) {} }
Stride 2
CODE Backside
Protected Sub Page_Load(ByVal sender Every bit Object, ByVal east Equally Organisation.EventArgs) Handles Me.Load Endeavor Dim strOperation Equally String = Cord.Empty strOperation = Request(" operation") If strOperation = " save" Then Dim streamReader As New System.IO.StreamReader(Asking.InputStream) Dim spreadsheetdata = streamReader.ReadToEnd() SaveTemplate(spreadsheetdata) Response.Write(" DataSaved") Response.Finish() End If Catch ex As Exception End Try Cease Sub
Wrapping upwardly
Function web component is a proficient tool to get excel type spreadsheet characteristic onto your web page rather than using the excel object and creating spreadsheet at runtime. The afterward arroyo is deadening and non user friendly. This involves creating new component birthday. OWC actually saves meaning amount of development fourth dimension and simulate real fourth dimension excel worksheet on web.
Any Idea, Proposition or References on similar topics will surely add values to our learning.
For more information you tin contact me on gautams.mail@gmail.com
Source: https://www.codeproject.com/Articles/26183/Office-Web-Component-v11-0-Spreadsheet-And-AJAX-In

0 Response to "Microsoft Office Web Components 11 Download"
Post a Comment