Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / March 2005

Tip: Looking for answers? Try searching our database.

Convert this vb code to C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
goraya - 28 Mar 2005 13:53 GMT
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
Howard Kaikow - 29 Mar 2005 18:44 GMT
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".

Signature

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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.