943,741 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 26526
  • VB.NET RSS
Apr 11th, 2005
0

Unable to create an excel file in VB.net

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tapanp is offline Offline
3 posts
since Mar 2005
Apr 11th, 2005
0

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.
Team Colleague
Reputation Points: 211
Solved Threads: 27
Master Poster
Paladine is offline Offline
793 posts
since Feb 2003
Aug 26th, 2008
0

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
hu_yang is offline Offline
5 posts
since Aug 2008

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 VB.NET Forum Timeline: new learner
Next Thread in VB.NET Forum Timeline: Screen Scrape remove spaces/line breaks between specified tags





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


Follow us on Twitter


© 2011 DaniWeb® LLC