Unable to create an excel file in VB.net

Please support our VB.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Mar 2005
Posts: 3
Reputation: tapanp is an unknown quantity at this point 
Solved Threads: 0
tapanp tapanp is offline Offline
Newbie Poster

Unable to create an excel file in VB.net

 
0
  #1
Apr 11th, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2003
Posts: 793
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 26
Team Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

Re: Unable to create an excel file in VB.net

 
0
  #2
Apr 11th, 2005
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.
Assistant Manager, Pharmacy Informatics
Wordpress Learning Blog
Updated : ASP.Net Login Code
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 3
Reputation: hu_yang is an unknown quantity at this point 
Solved Threads: 0
hu_yang hu_yang is offline Offline
Newbie Poster

Re: Unable to create an excel file in VB.net

 
0
  #3
Aug 26th, 2008
eck the following link , step by step to ctreate the excel file

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

hu.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC