dotnetspider.com
Login Login    Register      

TutorialsForumCareer DevelopmentResourcesReviewsJobsInterviewCommunitiesProjectsTraining

Subscribe to Subscribers
Talk to Webmaster
Tony John

Facebook
Google+
Twitter
LinkedIn
Online Membersbaskar
More...
Join our online Google+ community for Bloggers, Content Writers and Webmasters




Forums » .NET » .NET »

Get Error In DataTable when includes the Imports.Microsoft.Interop.Excel


Posted Date: 15 Jun 2012      Posted By:: chellappan     Member Level: Silver    Member Rank: 1417     Points: 1   Responses: 2



I am getting error at
Dim dt as new DataTable
while including Imports.Microsoft.Interop.Excel

Error:
'New Cannot used on interface

why?




Responses

#675612    Author: Anil Kumar Pandey      Member Level: Platinum      Member Rank: 1     Date: 15/Jun/2012   Rating: 2 out of 52 out of 5     Points: 2

The must be while creating object of the data table you are using. You might referring the Interface to create a object.

Please share the line of code where you are getting the issue.

Thanks & Regards
Anil Kumar Pandey
Microsoft MVP, DNS MVM



 
#675615    Author: sudhajosyula      Member Level: Gold      Member Rank: 46     Date: 15/Jun/2012   Rating: 2 out of 52 out of 5     Points: 2

It is mainly due to Excel COM library i suppose.As per anil,kindly share your code and by analysis we could come to know where the actual error is located.


 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : How to connect sql server with dataset
Previous : Requesting for serial key setting in vb.net while deployment
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Email subscription
  • .NET Jobs
  • .NET Articles
  • .NET Forums
  • Articles Rss Feeds
    Forum Rss Feeds


    About Us    Contact Us    Copyright    Privacy Policy    Terms Of Use    Revenue Sharing sites   Advertise   Talk to Tony John
    Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
    2005 - 2012 All Rights Reserved.
    .NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
    Articles, tutorials and all other content offered here is for educational purpose only.
    We are not associated with Microsoft or its partners.