Convert this vb code to C#

G

goraya

Hi
Plz Anyone Convert this VB code to C# Equivalent
Here Application is MS Word.
With Application
.Visible = True
.Activate
.COMAddIns.Item("NETSLogin.CNe­tsWord").Connect = True
.Run
MacroName:="NETSTemplate.NWCom­mands.LoginToNETS"
.Run MacroName:="NETSTemplate.md.Op­enDocForNETSSite"
End With
Thank u for ur help in Advance.Plz help ASAP.
With bers regards
Qumer
 
H

Howard Kaikow

The code you give is VBA code.

Using either VB .NET or C#, you still will be using VBA code, but the syntax
is different within the VB .NET or C#.

First, you need to write VB.NET or C# code that can automate Word.
Only then can one consider how to include your code in the VB .NET or C#
code.

Note that it is much easier to use VB .NET than C# to automate Word,
especially for a beginner.

A place to start may be Andrew Whiechapel's book from MSFT Press, "Microsoft
..NET Development for Microsoft Office".

--
http://www.standards.com/; See Howard Kaikow's web site.
Hi
Plz Anyone Convert this VB code to C# Equivalent
Here Application is MS Word.
With Application
.Visible = True
.Activate
.COMAddIns.Item("NETSLogin.CNe­tsWord").Connect = True
.Run
MacroName:="NETSTemplate.NWCom­mands.LoginToNETS"
.Run MacroName:="NETSTemplate.md.Op­enDocForNETSSite"
End With
Thank u for ur help in Advance.Plz help ASAP.
With bers regards
Qumer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top