DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Using Excel (http://www.daniweb.com/forums/thread8923.html)

snufse Aug 5th, 2004 2:47 pm
Using Excel
 
I have a form from where user want to connect to a DB and fill a spread sheet (excel). This is supported in vb.net. Below syntax gives me error in asp. Below is my code. Thanks.

Dim xlApp As Excel.Application = New Excel.ApplicationClass
Dim xlBook As Excel.Workbook
Dim xlSheet1 As Excel.Worksheet = CType(xlBook.Worksheets(1), Excel.Worksheet)

Paladine Jun 24th, 2005 3:46 pm
Re: Using Excel
 
Well provide the error message and we may be able to provide a solution. :?:

"Remember we are not working on what you are working on. So when you ask for help you should be concise, but explicit about what it is you are trying to do, the code you are trying to accomplish it with, and the error(s) you are getting."

:cool:

Quote:

Originally Posted by snufse
I have a form from where user want to connect to a DB and fill a spread sheet (excel). This is supported in vb.net. Below syntax gives me error in asp. Below is my code. Thanks.

Dim xlApp As Excel.Application = New Excel.ApplicationClass
Dim xlBook As Excel.Workbook
Dim xlSheet1 As Excel.Worksheet = CType(xlBook.Worksheets(1), Excel.Worksheet)


jerMAn Jun 27th, 2005 10:42 am
Re: Using Excel
 
You say it is supported in VB.net. But is it supported in ASP.net Web Applications?

There is a difference.

I looked around the web and in my manuals, and found nor references to using an Excel component or spreadsheets in ASP.net.

Would be a cool project to make one though.

Paladine Jun 27th, 2005 2:53 pm
Re: Using Excel
 
Well it should be useable in ASP.Net...


Ok, well either tonight or tomorrow I will try to do up a tutorial on this.

No promises....

Paladine Jun 28th, 2005 12:05 am
Re: Using Excel
 
Why do what is already done!

Here is a link. MSDN is your friend.

:cool:


All times are GMT -4. The time now is 1:37 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC