943,948 Members | Top Members by Rank

Ad:
  • ASP.NET Discussion Thread
  • Marked Solved
  • Views: 8748
  • ASP.NET RSS
You are currently viewing page 1 of this multi-page discussion thread
Jul 9th, 2007
0

Diplaying Excel Spread aheets online

Expand Post »
Dear friends,

Hope all of U are having a great time.
I need to display Excel sheets online using asp.net ,C#, MS SQL and Microsoft Office Share Point Server 2007. I need to make this Excel sheet editable to some authorized users. Do anyone of you have idea of attaining this scenario. Please respond if you have any hints make this possible. Thanking you in anticipation.
Regards,
Vamsi K Gummadi
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vamsikgummadi is offline Offline
14 posts
since May 2007
Jul 9th, 2007
0

Re: Diplaying Excel Spread aheets online

there are some free components available that allow you to view excel documents in asp.net i cant think for the love of god where i saw them tho. best to GOOGLE it. Another alternative is to use something like a datagrid and create your own excel like application. this way you would have full control over everthing as youve hand made it.
Reputation Points: 66
Solved Threads: 56
Posting Pro in Training
Fungus1487 is offline Offline
459 posts
since Apr 2007
Jul 10th, 2007
0

Re: Diplaying Excel Spread aheets online

Hello Mr.Fungus,
Thank you for the reply and the suggestion. Yes, I agree with you that I can make use of something like a datagrid and create my own wxcel application and have full control on it. But my requirement is demanding me to display excel sheet online and make it editable to authorized users. Actually I tried to attain the above said scenario using IIS, asp.net, C# and MS Excel and I am partially successful. I am able to display excel sheets online but unable to edit, add and update. Even if I am edit the excel sheet displayed online it is saving the updated or edited file in some other location.
So my requirement needs excel sheet displayed online and make it editable to authorized users and at the same time save the updated file in the same location where the actual file exists.
I have googled to acheive this problem and I have learnt that using MS Office Share Point Server 2007 I can acheive this problem. Now, I request youand all the members in daniweb.com to suggest how I attain the problem using SharePoint Server, asp.net, c# and MS Excel. Hope you all enjoy taking this problem as a challenge and solve this problem together.
Vamsi K Gummadi.
United we stand divided we fall. We can make things better by working together.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vamsikgummadi is offline Offline
14 posts
since May 2007
Jul 16th, 2007
0

Re: Diplaying Excel Spread aheets online

Google has their Excel
you can use it for free
Reputation Points: 21
Solved Threads: 7
Junior Poster in Training
ProgrammersTalk is offline Offline
83 posts
since Jun 2007
Jul 16th, 2007
0

Re: Diplaying Excel Spread aheets online

I don't know that it'd be the most efficient, but you could save the Excel document as XML and use that as a data source on your website. You could then set up permissions to edit the XML data through a web interface. Like I said, this might not be the best way, but it should be functional.
Last edited by Infarction; Jul 16th, 2007 at 3:16 am.
Reputation Points: 683
Solved Threads: 53
Posting Virtuoso
Infarction is offline Offline
1,580 posts
since May 2006
Jul 17th, 2007
0

Re: Diplaying Excel Spread aheets online

Hello friends,Thank you for the replies and suggestions. Yes as some of you have suggested I have also tried to use Google spread sheets which are similar to MS Excel but my requirement is demanding me display MS Excel spreadsheets online.Yes I can save the Excel document as XML and use that as a data source on my website. But I don't know how to manage permissions. If I am editing the excel sheet that is displayed online and trying to save it then it is saving in some other location instead of updating the file in the same location.So for this purpose some of my friends are suggesting me to use Microsoft Share Point Services 2007.So I request you to kindly guide me how to manage perrmissions while displaying excel sheets online and save it in the same location or how to use Microsoft Office Share Point Server 2007 to display Excel Sheets online using C#,asp.net. Hope I am clear with my problem.I will be very greatful if you can help me in this aspect.VamsiKGummadi
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vamsikgummadi is offline Offline
14 posts
since May 2007
Jul 18th, 2007
0

Re: Diplaying Excel Spread aheets online

the way i did it was not through sharepoint server but through owc (office web components)
the coding for it it is quite easy and i could show you some exact code snippets if you're interested in
I've used asp.net 2.0 with c#; another thing you need to know is what owc you want to use (coding can be a little bit different); i have used owc11 (the office web components for office 11 (office 2003));
you also need to have the actual office installed on the server;
displaying real excel spreadsheets in web pages it is not too recommended because for each spreadsheet shown an office instance is running on the server;
anyway if this is what you want just post a reply and I'll give you the actual samples
Reputation Points: 10
Solved Threads: 1
Newbie Poster
pbogd is offline Offline
2 posts
since Jul 2007
Jul 18th, 2007
0

Re: Diplaying Excel Spread aheets online

Hello Sir,
Have gone through your reply. I think the solution you have given will be useful to me. Yes I agree with you that displaying real excel spreadsheets in the web pages is not advisible. I want these excel spreadsheets to be viewable to all users and editable only to authorized users.
I have actual office installed on the server. I am also having asp.net 2.0 installed.So, please kindly forward me the exact code snippets and any other links that can help me to find out a solution for this problem. Hope you will do the necessary.
Vamsi K Gummadi.
Ideal brain work like a devil
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vamsikgummadi is offline Offline
14 posts
since May 2007
Jul 19th, 2007
0

Re: Diplaying Excel Spread aheets online

snapshot from spreadsheet.aspx.cs

ASP.NET Syntax (Toggle Plain Text)
  1. using Microsoft.Office.Interop.Owc11;
  2.  
  3. ...
  4.  
  5. public string SSxml;
...
inside a method of yours or in page_load:
ASP.NET Syntax (Toggle Plain Text)
  1. SpreadsheetClass spsh = new SpreadsheetClass();
  2.  
  3. ... //you do here whatever you want with this spreadsheet (here is where you have to load it from file using obj spsh exposed methods)
  4. //you can do loads of things with this obj through its methods
  5.  
  6. SSxml = spsh.XMLData; //at the end you set this var in order to actually have it in the webpage


the other part is spreadsheet.aspx
ASP.NET Syntax (Toggle Plain Text)
  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="spreadsheet.aspx.cs" %>
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml" >
  6. <head runat="server">
  7. <title>spreadsheet</title>
  8. </head>
  9. <body>
  10. <form id="form1" runat="server">
  11. <div>
  12. <object id="spreadsheet1" classid="clsid:0002E559-0000-0000-C000-000000000046" width="1000" height="700">
  13. <param name="XMLData" value='<%= SSxml %>' />
  14. </object>
  15. </div>
  16. </form>
  17. </body>
  18. </html>

i hope you understand all the things above

have a nice day

you can google for "SpreadsheetClass" to find more details
Reputation Points: 10
Solved Threads: 1
Newbie Poster
pbogd is offline Offline
2 posts
since Jul 2007
Jul 20th, 2007
0

Re: Diplaying Excel Spread aheets online

Hello Sir,
Thank you for the help. I will work in this aspect and get back to you if I have any doubts. Thank you for the support offered. I will let you know the details at the earliest.
Vamsi K Gummadi.
Working hard is the only key of success.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vamsikgummadi is offline Offline
14 posts
since May 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP.NET Forum Timeline: LocalReport show/hide columns in report
Next Thread in ASP.NET Forum Timeline: Is this the correct Code ?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC