?
Solved

C#  interop

Posted on 2004-04-20
3
Medium Priority
?
369 Views
Last Modified: 2012-08-13
How to convert COM Collection to .Net Collection



I want to assign Datasource to DataGrid in .Net.

ArrayList is not Working.
0
Comment
Question by:shaival_trivedi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 5

Accepted Solution

by:
danielsonchris earned 200 total points
ID: 10879321
>How to convert COM Collection to .Net Collection
Add a reference to the COM object via the menu:  Project->"Add Reference" Dialog.  Select the COM tab and find your library to incorporate.  .Net will quickly convert an interop library set that will be your middle-man in talking with the COM library.  
Next you will need to tell .Net that you want to use the library in your code by declaring...

using Excel;  //let's say I incorporated the office 2000 COM libraries.
//now at this point you can begin making calls into the COM library.

>I want to assign Datasource to DataGrid in .Net.
>ArrayList is not Working.

make sure that you have the following library set at the top of your page..

using System.Collections;

if ArrayList is still not working... is this a Web Application or Windows Application?  When calling the ArrayList can we see a code snippit?
Best of luck,
Chris
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question