Syntax for automating Word in C #

I am trying to create a highly formatted Word document in C # using Word Automation. I am having trouble finding syntax for many operations that I would like to perform. I tried to use the Word ability to create macros, and then use the resulting code to create what I need, but since the macros are written in Visual Basic, and I had the problem of "translating" it into C #. Is there a Word Automation syntax repository? I am familiar with tutorials available through the Microsoft website.

+3
source share
5 answers

Check out this link: it covers many topics.

Word #

+5

Word COM. Word 2007:

http://msdn.microsoft.com/en-us/library/bb225019%28office.12%29.aspx

Excel, ! ( Excel " Excel VBA .NET" O'Reilly).

+1
0

IMHO , . VB #, :

http://www.harding.edu/fmccown/vbnet_csharp_comparison.html

# 3.5 , AFAIK Word COM. VB.NET #.

0

- Word VBA Developer Reference. Word , #, , , VBA, , #, ( ) . VS 2010 , , , VBA ( ).

Word Word.

0

Source: https://habr.com/ru/post/1774176/


All Articles