Spreadsheet in ASP.Net

S

SteffenJ

Hi there.
Is it possible to drag an owc-excel spreadsheet to an ASP-page?
I haven't been able to figure it out, but I have put on on a FrontPage-page
and then copied the code and pasted it into Asp (and modified it until it
worked).
Now it shows fine when I run the program but I am not able to get a grip on
the control in the code. ForEach does not give me anything.
Is there somewhere I can find some good examples?
I would also like an example on how to write to a cell and read from a cell.
If possible, I would prefer C#.
Thanks
SteffenJ
 
A

Alvin Bruney [MVP]

An activex control lives in a browser, it won't be available from the
code-behind. However, there's an approach in the black book to push script
out to the client to automate it.
Response.Write("<script>document.all.sp.Cells[1][1].Value = '" + strValue +
"'</script>");

roughly

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top