C# Corner

Related resources for interop
  • Converting PowerPoint Presentations (PPT/PPTX) To PDF Using ASP.Net Core with Office Interop C#6/8/2017 7:24:28 AM. In this article, I am going to share with you one of my great experiences on converting PPTX/PPT to PDF file.
  • C# and its Features3/15/2017 12:50:48 AM. C# is a modern, type safe programming language, object oriented language that enables programmers to quickly and easily build solutions for the Microsoft .NET platform.
  • Populate Dropdown List From Database In Classic ASP (Vbscript)10/23/2016 1:58:35 PM. In this blog you will learn how to populate dropdown list from Database In Classic ASP (Vbscript).
  • Read Excel Files Using Microsoft Office Interop Assemblies in ASP.NET C#6/11/2016 1:56:55 PM. In this article you will learn how to Read Excel Files Using Microsoft Office Interop Assemblies in ASP.NET C#.
  • Read And Write Spreadsheet Without Any Dependency11/1/2015 11:46:36 AM. In this article you will learn how to read and write spreadsheet without any dependency.
  • .NET Cross Language Interoperability2/8/2015 10:46:32 PM. This video tutorial demonstrates the .NET Interoperability using C# and VB .NET.
  • Understanding Cross Language Interoperability With C# .NET11/27/2014 1:14:08 PM. This article explains case sensitivity/insensitivity of cross language interoperability in Microsoft .NET that allows compliant languages to interoperate with each other.
  • Reading Merged Cell From Excel Using Microsoft.Office.Interop.Excel in C#11/14/2014 3:30:40 PM. This article describes how to read an Excel file that has merged columns within it.
  • COM in .NET11/5/2014 4:18:20 PM. This article explains how .NET applications interoperate with COM and vice-versa using RCW and CCW.
  • How to create a COM application and consume it from within VC++6.0 - .Net and COM Part III9/4/2014 5:13:33 AM. In this article , I will expose another way to generate a COM component and I will give also a trick of how to consume this generated COM from within VC++ 6.0 application.
  • How to create a COM object using VS 2008 and consume it from VB 6.0 client application: Part II9/4/2014 5:09:03 AM. In this article, we will see how to create a simple COM application in Visual Studio 2008 and how to consume it from a VB6 client application.
  • Introduction to the interoperation between .Net and COM: Part I9/4/2014 5:04:32 AM. This is a brief introduction to the COM component object model.
  • Cross-Language Interoperability in .NET Framework7/2/2014 7:35:04 PM. This article shows how to create a Class Library file in C# (in other words a DLL file) and will use that DLL file in a Visual Basic application.
  • Cross Language Interoperability With C# .NET6/3/2014 12:10:48 AM. As you know Microsoft .NET is designed with cross language interoperability. I.e. two .NET compliant languages can interoperate with each other. Which simply means a function in VB .NET can be called by C# and vice-versa.
  • Exporting Generic List<T> to Excel in C# Using Interop5/9/2014 9:10:15 PM. In this article we will learn how to export a Generic List&lt;T&gt; to Excel using Interop.
  • Exporting DataTable to Excel in C# Using Interop3/26/2014 12:01:42 PM. Here in this article we will use a sample datatable and learn how to export data to an Excel file.
  • A Generic Library For Accessing and Creating Microsoft Project Plan File3/16/2014 1:15:58 PM. Here you will learn about a generic library for accessing and creating Microsoft Project Plan files.
  • Limitations of COM Interop2/11/2014 4:57:16 AM. This blog discusses the COM, Interoperability.
  • Creating a Sound Recorder in C and C#2/4/2014 3:25:18 PM. In this article we will learn how to record audio and play sound files in C and C#.
  • Solutions to Merge Multiple Excel Worksheets Into One1/21/2014 6:08:54 PM. In this article you will learn about 4 ways to merge multiple Excel Worksheets into one.
  • Writing HTML Content to the Screen in Word Document Format In a Server1/8/2014 2:17:51 PM. This article explains a smple way to create a Microsft Word document representation of some HTML in a server.
  • Export DataGridView Data to Excel in C# Without Saving to File System8/5/2013 4:36:06 PM. In this article we will learn how Export DataGridView data to Excel in C# without saving to Local File System.
  • Spelling Checking Using Microsoft Word Object Library in WPF7/26/2013 3:30:46 PM. This article shows how to check for misspelled words in a document (in a WPF Rich TextBox) using the COM Object "Microsoft Word Object Library".
  • ‘This template attempted to load component assembly 'NuGet.VisualStudio.Interop, Version=*, Culture=neutral, PublicKeyToken=*'5/10/2013 3:50:08 AM. In this blog you will learn how to remove given error message in visual studio 2012.
  • Creating Excel File using Interop Services1/9/2013 3:07:39 AM. This blog defines how to create Excel 2007 file using Interop services.
  • Clicking a Button in Another Application12/15/2012 1:22:04 AM. This article provides a simple sample of an application that clicks a button in another application.
  • ActiveX Controls in VB.NET12/1/2012 2:20:03 AM. VB.NET language provides us a way to call this COM server in a program. When we compile a VB.NET program an Intermediate Language is generated and it is called as Managed Code. This article shows how to create a simple server by using Visual Basic 6.0 and implementing it in a VB.NET client program.
  • COM Components from .NET Clients using VB.NET12/1/2012 2:08:08 AM. The .NET framework exposes COM objects through a proxy called the runtime callable wrapper (RCW). The primary function of RCW is to marshal call between a managed client (.Net) and unmanaged COM object. The runtime maintains a single RCW for each COM object.The example uses a COM component and DotNet client extending the functionality of the COM component using delegation.
  • Getting NASDAQ Quotes with a Pocket PC in VB.NET11/10/2012 9:59:12 AM. This article describes about getting the NASDAQ Quotes with a Pocket PC. If you have been lucky enough to get the Compact Framework or Smart devices extension beta for April 2002 you may.
  • Display and Hiding SIP on Pocket PC in VB.NET11/10/2012 2:45:15 AM. When you get your hands on a Pocket PC for the first time you have to wonder just how the heck do you enter information.
  • Great Plains Dexterity programming in VB.NET11/10/2012 2:33:50 AM. This article is for advanced Great Plains Dexterity and VS.NET developers. It describes the technique of direct COM objects calling in Dexterity.
  • COM Interoperability in VB.NET Part 311/10/2012 2:28:52 AM. In this article I cover the area how to use a COM server in a .NET client. Existing COM components are precious resources to your managed applications. So now let us observe how you can build a .NET Client that uses a COM Server.
  • Writing an ActiveX Control in VB.NET11/10/2012 2:23:58 AM. Create a Windows control project in Visual Studio .NET and expose an interface to the COM world.
  • COM Interoperability in VB.NET Part 211/10/2012 2:15:00 AM. This article elucidates how to build and install-managed code that will be used from COM applications. A classic COM server is activated using the Service Control Manager (SCM). It looks up numerous information such as CLSIDs, IIDs, ProgIDs etc.
  • Exploring VB.NET Arrays11/10/2012 2:07:45 AM. There are few differences between VB6 and VB.NET arrays. This article explains how VB.NET arrays differ from the VB6 arrays.
  • JIT Coding in VB.NET11/10/2012 1:49:47 AM. One not so well known feature of .NET platform is possibility to invoke compiler and practically create code and assembly from running instance of application. It is possible to do that in two ways. First one is a bit simpler and involves namespaces System.CodeDom and System.CodeDom.Compiler, second one is more efficient and utilizes namespace System.Reflection.Emit. Since there are very few examples about how to use System.CodeDom.Compiler I will start with it.
  • Just for Fun - A Small Piano Keyboard in VB.NET11/9/2012 9:05:14 AM. This one was just for fun; the article describes a project used to build a simple piano keyboard that plays some not too terrific sounding notes courtesy of the Kernel32.dll’s beep function.
  • Visual Basic Spell Check Enabled Rich Text Box Custom Control11/9/2012 8:15:48 AM. This article describes a quick and simple approach to applying a spell check function to the rich text box control and bundling both features into a single custom control.
  • Building Applications that Can Talk in VB.NET11/8/2012 6:56:58 AM. In this article we are going to explore the Speech API library that’s part of the TTS SDK that helps you reading text and speaking it. We’re going to see how to do it programmatically VB.NET and how to make use of LINQ to make it more interesting. The last part of this article talks about won’t tell you more, let’s see!
  • Best Approach for Designing Interoperable Web Service10/13/2012 5:52:26 AM. This article will clarify and explain in detail the different Web Service Design Methodologies as defined by the Web Services Standardization Groups, clarify the terms, highlight their differences.
  • Building Applications with .NET Compact Framework10/1/2012 8:25:52 AM. In this article, author explains various components of Microsoft .NET Compact Framework and how to build compact device applications using .NET Compact Framework.
  • Using COM+ SPM in .NET9/30/2012 6:06:11 AM. This article looks at how you can use the COM+ Shared Property Manager (SPM) in .NET to implement the sharing of state across components. I’m assuming that you are familiar with VB.NET, Windows Forms, Serviced Components and COM+. Before we actually get down to see the solutions, let’s get aside some basics first.
  • Stock Paper Trader in C# and .NET9/30/2012 6:04:07 AM. The attached source code project is a paper trading application that allows you to place imaginary trades on real data. I thought this would be fairly easy to duplicate having already written a stock capturing program into Excel.
  • Creating MMC Snapin using C# (Part 1)9/30/2012 6:03:16 AM. This article and attached source code shows you how to create MMC Snapin using C#.
  • Migrating COM/DCOM Applications in Microsoft .NET Framework9/30/2012 5:43:57 AM. In the current Internet scenario, various classic applications run on multiple networks. These applications could have been written using different languages like Visual Basic, Visual C++. For example, a retail organization would have different systems, such as an inventory management system, a bill of material systems, and a general ledger system, all implemented using various technologies available for application development. These systems need to be integrated to form a higher-level enterprise information system for an organization.
  • Web Services-Interoperability9/30/2012 5:41:34 AM. In this article, we will see what interoperability is all about, comparison between Java and .NET interoperability, the benefits of and challenges faced in interoperability and the role of WS-I in this overall scenario.
  • Interoperability in .NET9/30/2012 5:39:00 AM. The important goals of .NET during its development was to promote interoperability with existing technologies.
  • ValidationScriptGenerator9/30/2012 5:36:40 AM. This article gives you a solution for generating a client side validation script in a component model that you can reuse in an ASP.NET project.
  • Mapping Microsoft Excel columns with XML data (XML data integration) programmatically using a .Net Application.9/30/2012 5:34:58 AM. Using this program you can map Excel columns programmatically and generate an XML file containing the cell values that you had in your Excel document. After generating the XML file we can read it into a dataset.
  • DTS Custom Task in C#9/30/2012 5:29:53 AM. During last year I wrote an article about DTS and how to use it in C#. In that article I stated that I didn’t manage to solve the problem related to CustomTask. Today I finally forced myself to tackle that problem again and here is the result. Writing simple CustomTask in C# is the easiest part.
  • COM Interoperability Part 1: Using COM Components in .NET Framework9/30/2012 5:27:31 AM. In this article we review the concepts & walk-through an example that demonstrates COM interoperability in .NET framework.
  • Platform Invocation Services in .NET Framework9/30/2012 5:19:39 AM. This article will cover the details of Platform Invocation Services provided in .Net Framework. Platform Invoke Services acts as a bridge between the managed and unmanaged code. This service enables managed code to call unmanaged functions which are being exposed by any dynamic link libraries (DLL’s) such as Win32 API’s or any custom DLLs.
  • .NET COM Interoperability - Part 2: Using .NET Component from COM9/30/2012 5:12:25 AM. When a COM client calls a DotNet object, the DotNet framework will create a COM callable wrapper (CCW). COM clients use the CCW as a proxy for the managed object.
  • .NET COM Interoperability - Part 1: Using COM Components from .NET Framework9/30/2012 5:10:24 AM. The DotNet framework exposes COM objects through a proxy called the runtime callable wrapper (RCW). The primary function of RCW is to marshal call between a managed client (.Net) and unmanaged COM object. The runtime maintains a single RCW for each COM object.
  • Calling Managed Code from Unmanaged Code9/30/2012 5:08:19 AM. One significant part of developers (including myself) are doing some kind of automation of Microsoft Office. So I will concentrate on opposing side of problem, how to use managed assembly from MS Office or VB script. In this article, I will discuss how to call managed code from unmanaged code.
  • Host Integration Server 2000 : An Overview9/30/2012 4:58:43 AM. This white paper highlights some of the features offered by Microsoft's Host Integration Server 2000. This white paper also gives an overview of key benefits and features in Host Integration Server 2000.
  • Creating an Excel Spreadsheet Programmatically9/30/2012 4:57:29 AM. The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel. This article reveals using Excel from a managed application. Excel is the spreadsheet component of Microsoft Office 2000.
  • C# and ActiveX DLL9/30/2012 4:54:39 AM. As you know with Visual Basic 6.0, it is possible develop a COM server and implement them in a Visual Basic client program. But this is being done by using Visual Basic. You may wonder about the idea of calling this DLL in a C# Application. Well, C# language provides us a way to call this COM server in a program. When we compile a C# program an Intermediate Language is generated and it is called as Managed Code.
  • An insight into Code Reusability and COM Interoperability - Part 29/30/2012 4:46:59 AM. We have mushrooms of network systems running across the globe based on many proprietary protocols. In order to integrate these systems to communicate with each other in a more meaningful way, developers or organizations have to face an uphill task.
  • Language Independence from COM to .NET9/30/2012 4:42:44 AM. This article covers the subject regarding Language Independence. This term Language Independent means one can create an application using various languages. This Language independent starts from past COM (OLE & ActiveX) to present .Net.Let us see in detail.
  • Com and Component creation in C#9/30/2012 4:39:32 AM. Component is nothing but the reusable piece of software in binary form that can be plugged into other components from other vendors.
  • Accessing COM+ component using C#9/30/2012 4:29:53 AM. This tutorial explains step by step of accessing COM+ application using C#.
  • Using C# and COM Interoperability to Extract from a UML tool into a Microsoft Word Document9/30/2012 4:08:11 AM. This article allows you to read the classes contained inside of WithClass 2000 into a Word Document using COM Interoperability for Word and COM Interoperability for WithClass and presents your classes in a kind of report.
  • Aural Alert Generator (Voice and Tones)9/30/2012 4:04:01 AM. This article describes an application used to generate and test aural alerts; I wrote the application originally to allow me to define and test aural alerts for use in a couple of cockpit simulators, however, you could use the application to generate aural alerts for any purpose. The application also may be used to define voice messages which may be optionally saved as wave files for subsequent use in other applications.
  • Platform Invoke Sample - Changing the Desktop Wallpaper9/30/2012 3:56:27 AM. In this example we will see how to change the Desktop wallpaper by invoking a Windows API function from C#. The Platform Invoke mechanism allows you to access unmanaged functions implemented in dlls.
  • Web services with Language Interoperability9/30/2012 3:49:20 AM. A web service in general is a way of exposing the properties and methods through the Internet In other words, it's an URL-addressable resource that programmatically returns information to clients who want to use it.
  • Interop Without PInvoke - Consuming Native Libraries in C#.9/30/2012 2:36:44 AM. This article will help get you started consuming native code with C# by writing your own interop layer in C++/CLI as a much cleaner and more flexible alternative to using PInvoke.
  • Interoperation & Processing EXCEL Sheet Data9/30/2012 1:55:34 AM. Here we are discussing INTEROPERATION with example of Excel Sheet processing.
  • Using Reflection and With Class2000 to view the .NET System.Drawing library Part I9/29/2012 7:16:34 AM. Using the power of .NET and the power of COM InterOperability through WithClass 2000, you can view the System.Drawing library in a rough UML diagram.
  • .NET Interoperability at a Glance 3 - Unmanaged Code Interoperation6/12/2012 1:04:42 AM. This is the last article in this series, it talks about unmanaged code interoperation; that’s, interop between .NET code and other code from other technologies (like Windows API, native libraries, COM, ActiveX, etc.)Be prepared!
  • SOAP, .NET, and COM an Introduction - Part II5/19/2012 7:04:37 AM. This article starts with the basics of SOAP, SOAP XML model and its data types followed by the integration of SOAP functionality in .NET class library and how .NET developers can take advantages of SOAP in their applications.
  • Using Cards.dll in a Windows Control Library5/19/2012 5:47:32 AM. This project aims at designing a windows control library that encapsulates a playing card.
  • Transparent Borderless Forms in C#5/15/2012 4:21:03 PM. This article describes an approach to display transparent forms in a Windows application.
  • Moving a Form without the Title Bar5/13/2012 5:57:37 AM. In this article, learn how to to allow the user to move the form without its title bar.
  • DTS Custom Task in VB.NET4/20/2012 7:45:11 AM. During last year I wrote an article about DTS and how to use it in VB.NET. In that article I stated that I didn’t manage to solve the problem related to CustomTask. Today I finally forced myself to tackle that problem again and here is the result.
  • Building Applications that Can Talk4/20/2012 7:03:41 AM. In this article we are going to explore the Speech API library that’s part of the TTS SDK that helps you reading text and speaking it. We’re going to see how to do it programmatically VB.NET and how to make use of LINQ to make it more interesting. The last part of this article talks about…… won’t tell you more, let’s see!
  • Split worksheets to individual Excel files using Interop8/5/2011 10:28:57 AM. In this Blog you will see Split worksheets to individual Excel files using Interop.
  • Programmatically Swapping Mouse Buttons7/10/2011 9:24:31 AM. In this article we will learn how to swap mouse buttons programmatically - to make the left button acts as the right and vice versa.
  • Language Interoperability4/21/2011 3:54:48 PM. .NET Language interoperate with each other that is code of one language can be consumed from other after getting converted to IL.
  • Examples of COM Automation in Silverlight 43/31/2011 7:57:07 AM. In the previous lesson we talked about COM automation support introduced in Silverlight 4 and we said that COM automation is available only for Silverlight OOB (Out-of-Browser) applications that have Elevated Trust, and that’s one of the security restrictions imposed by Silverlight.Today, we’re going to talk about COM automation in more details and give few Silverlight examples that make use of this great feature.
  • Clearing the Console Screen using API 2/11/2011 12:42:03 AM. Learn how to clear the Console screen using Win32 API calls. Also learn additional techniques like how to clear a specific portion of the screen or to move it.
  • How to create Silverlight Object in the HTML-Interop2/10/2011 2:08:41 PM. Browser interoperability with Silverlight and vice versa has raised many possibilities for interesting interactions and use of javascipts in ways similar to their use in ASP.Net
  • Building Applications that Can Talk1/21/2011 10:48:05 PM. In this article we are going to explore the Speech API library that’s part of the TTS SDK that helps you reading text and speaking it. We’re going to see how to do it programmatically using C# and VB.NET and how to make use of LINQ to make it more interesting. The last part of this article talks about…… won’t tell you more, let’s see!
  • Text to speech using C#1/20/2011 12:30:04 PM. This Article explains how to convert text to speech using C#.
  • How C# new dynamic type can simplify access to late bound COM object1/10/2011 3:11:35 PM.
  • .NET Interoperability at a Glance 2 – Managed Code Interoperation1/6/2011 1:11:55 AM. In the previous article, you learned what interoperability is and how it relates to the .NET Framework. In this article, we’re going to talk about the first form of interoperability, the Managed Code Interop. In the next article, we’ll talk about other forms.
  • .NET Interoperability at a Glance 1 – Introduction12/27/2010 12:33:04 AM. In this article and the few following it, we’ll try to take a tour in Interoperability in .NET Framework.
  • CUDA integration with C#11/26/2010 3:15:39 AM. This article will focus on how to create an unmanaged dll with CUDA code and use it in a C# program. The example will show some differences between execution times of managed, unmanaged and new .NET 4 parallel versions of for() loops used to do computations on arrays.
  • Creating and opening Microsoft Word document from VB.NET9/18/2010 11:32:32 AM. This article is being written in response to a couple inquiries on the question, "How do I open a word document from .NET?". I guess after people read my excel article, they were under the impression that I knew how to do this in Word. Luckily, after some hunting around on the forums and feedback from other C# Corner members I got the gist of it.
  • Export Image to Microsoft Office Excel using C#8/19/2010 2:51:08 AM. Here I am trying to show how we can export an image to excel file.
  • Insert Multiple Image in word file using c#8/18/2010 4:18:53 AM. In this article I will show to insert multiple image in word file using c#
  • Create Word Document without using COM component (Interop) or Third party API's6/23/2010 12:21:33 AM. In this article we will see how to create word document without using COM component (Interop) or Third party API's.
  • Video AR001 (Arabic): Interoperability – 01 Introduction5/24/2010 10:26:23 AM. Video AR001 Arabic Interoperability - 01 Introduction
  • Microsoft Agent; Providing a Custom Popup Menu5/7/2010 4:39:16 AM. In this article we will see how to create a custom popup menu for your Microsoft Agent character.
  • Hard Links vs. Soft Links4/7/2010 12:30:08 AM. This article talks about hard links and soft links; two of the nice features of NTFS file system.
  • COM Interoperability3/8/2010 11:40:10 PM. The code written for the .NET Framework is also referred to as managed code, and the code written for tradition Windows applications (previous to the .NET Framework) is called unmanaged code. Managed code contains metadata used by the Common Language Runtime (CLR).
  • Marshaling Unions2/21/2010 11:10:09 PM. In this article you will learn how to marshal C/C++ Unions in C#.
  • Changing Screen Resolution Programmatically via DirectX10/14/2009 2:15:01 AM. In this article, learn how to change display settings (resolution, bit count, etc.) via DirectX libraries.
  • Changing Screen Resolution Programmatically via DirectX10/14/2009 2:15:01 AM. In this article, learn how to change display settings (resolution, bit count, etc.) via DirectX libraries.
  • Programmatically Turning on the Screen Saver 10/8/2009 12:42:40 PM. Learn how to programmatically turn on the screen saver via Win32 API and C#.