DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   VB.NET (http://www.daniweb.com/forums/forum58.html)
-   -   Unable to create an excel file in VB.net (http://www.daniweb.com/forums/thread21758.html)

tapanp Apr 11th, 2005 7:12 am
Unable to create an excel file in VB.net
 
Hi,

Unsung VB.net, I am trying to create an excel file in my web server (windows 2000 server). But I end up with the following error:

System.Runtime.InteropServices.COMException (0x80040154): COM object with CLSID {00024500-0000-0000-C000-000000000046} is either not valid or not registered.

MS Office is not installed in my server. Even I do not want to install MS Office in my server.

If any one can help me.

Thanks
Tapan Kumar Pattanayak

Paladine Apr 11th, 2005 3:12 pm
Re: Unable to create an excel file in VB.net
 
Umm, ok. If you look at that error it tells you flat out... how do you expect to call on a CLSID (registry object) that you don't want to install in the server?

Inorder to create the XLS file (which is an object) you will need to object registered in the system registry in order for InteropServices to invoke methods from it.

Sorry dude, but you will have to install Excel at the minimum to have this work, at least to my knowledge anyway.

Reading from an excel file without excel installed is on thing, but creating one through method calls to it...is another.

hu_yang Aug 26th, 2008 5:33 am
Re: Unable to create an excel file in VB.net
 
eck the following link , step by step to ctreate the excel file

http://vb.net-informations.com/excel...reate_file.htm

hu.


All times are GMT -4. The time now is 8:28 pm.

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