Click here to Skip to main content
16,005,339 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Open Dialog Box Pin
Heath Stewart24-Jun-04 5:09
protectorHeath Stewart24-Jun-04 5:09 
GeneralRe: C# Open Dialog Box Pin
HyVong24-Jun-04 5:18
HyVong24-Jun-04 5:18 
GeneralRe: C# Open Dialog Box Pin
Heath Stewart24-Jun-04 5:45
protectorHeath Stewart24-Jun-04 5:45 
GeneralRe: C# Open Dialog Box Pin
HyVong24-Jun-04 5:49
HyVong24-Jun-04 5:49 
GeneralRe: C# Open Dialog Box Pin
HyVong25-Jun-04 3:25
HyVong25-Jun-04 3:25 
Generalquery builer Pin
Member 114126624-Jun-04 2:35
Member 114126624-Jun-04 2:35 
GeneralMS Project 2003 Pin
frankvgb24-Jun-04 1:41
frankvgb24-Jun-04 1:41 
GeneralRe: MS Project 2003 Pin
Heath Stewart24-Jun-04 6:23
protectorHeath Stewart24-Jun-04 6:23 
The best place to find the programming information about Office products is in the developer help that can be installed (and is installed if you choose a "Complete" install) with Office. MSDN[^] contains only the object model diagram (no clicketies) and conceptual articles (still good to read, though).

Even though the object model discusses VBA, the same is available in managed languages. VBA depends upon typelibs to provide OLE/COM automation interfaces and related types. This is the same information that VS.NET and the tlbimp.exe utility use to create a Runtime Callable Wrapper (RCW, often called an "interop assembly"). If you have Office XP, you can download the official interop assemblies (Primary Interop Assemblies, or PIAs) from http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-A6B4-01FEBA508E52&displaylang=en[^]. If you have Office 2003 Professional, these can be installed along with Office (Microsoft .NET Programming Support).

If you want to support older Office versions, use tlbimp.exe (and specify signing options, which is important if you want to install into the GAC) to generate interop assemblies from those products. These will typically work with newer versions of Office products as well since the typelibs are versioned and class interfaces are almost always backward compatible (at least for the basics).

So, just remember that whatever you read about the object model for VB/VBA, it will work in managed code as well using interop assemblies (though sometimes a little extra programming is required...sometimes).

 

Microsoft MVP, Visual C#
My Articles
Questionserver name? Pin
quocbao24-Jun-04 1:19
quocbao24-Jun-04 1:19 
AnswerRe: server name? Pin
Heath Stewart24-Jun-04 6:37
protectorHeath Stewart24-Jun-04 6:37 
Questionserver name? Pin
quocbao24-Jun-04 1:18
quocbao24-Jun-04 1:18 
QuestionHow to write a Async UDP socket code? Pin
fu023-Jun-04 20:53
fu023-Jun-04 20:53 
AnswerRe: How to write a Async UDP socket code? Pin
Heath Stewart24-Jun-04 6:41
protectorHeath Stewart24-Jun-04 6:41 
GeneralRe: How to write a Async UDP socket code? Pin
fu024-Jun-04 22:15
fu024-Jun-04 22:15 
GeneralRe: How to write a Async UDP socket code? Pin
Heath Stewart25-Jun-04 3:41
protectorHeath Stewart25-Jun-04 3:41 
GeneralRe: How to write a Async UDP socket code? Pin
fu027-Jun-04 16:12
fu027-Jun-04 16:12 
GeneralSaving DataSet with calculated columns Pin
myNameIsRon23-Jun-04 19:58
myNameIsRon23-Jun-04 19:58 
GeneralRe: Saving DataSet with calculated columns Pin
Heath Stewart24-Jun-04 5:32
protectorHeath Stewart24-Jun-04 5:32 
GeneralRe: Saving DataSet with calculated columns Pin
myNameIsRon25-Jun-04 8:54
myNameIsRon25-Jun-04 8:54 
Generalproject problem Pin
dan_ta2223-Jun-04 19:34
dan_ta2223-Jun-04 19:34 
GeneralRe: project problem Pin
Xiangyang Liu 刘向阳24-Jun-04 1:38
Xiangyang Liu 刘向阳24-Jun-04 1:38 
GeneralRe: project problem Pin
dan_ta2227-Jun-04 14:24
dan_ta2227-Jun-04 14:24 
GeneralRe: project problem Pin
LongRange.Shooter24-Jun-04 8:52
LongRange.Shooter24-Jun-04 8:52 
GeneralRe: project problem Pin
dan_ta2227-Jun-04 14:29
dan_ta2227-Jun-04 14:29 
GeneralA windows service with System.Web.Mail Pin
Valdair23-Jun-04 15:09
Valdair23-Jun-04 15:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.