RSS Forums RSS

Unable to create an excel file in VB.net

Please support our VB.NET advertiser: DiscountASP.NET – 3 Months Free on VB.NET Web Hosting
Reply
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

  #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
AddThis Social Bookmark Button
Reply With Quote  
Posts: 787
Reputation: Paladine has a spectacular aura about Paladine has a spectacular aura about Paladine has a spectacular aura about 
Solved Threads: 27
Colleague
Paladine's Avatar
Paladine Paladine is offline Offline
Master Poster

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

  #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  
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

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 22905 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:22 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC