none
I want that the text which I sent to WORD starts from the center of the sheet RRS feed

  • Question

  • I want that the text which I sent to WORD using  Microsoft.Office.Interop.Word reference starts from the center of the sheet. How can I do that? My code is:

    using Word = Microsoft.Office.Interop.Word;

    Word.Application wordApp = new Word.Application();

    wordApp.Documents.Add();

     

    Word._Document document = wordApp.ActiveDocument;

    Word.Paragraph paragraph;

    paragraph = document.Content.Paragraphs.Add();

    paragraph.Range.Text = "Cirriculum Vitae";

     

     

    Thanks...


    MICROSOFT
    • Moved by Helen Zhou Thursday, July 14, 2011 3:45 AM (From:Windows Forms General)
    Tuesday, July 12, 2011 11:35 AM

Answers

  • In VBA the command you are asking about is:

            Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter


    Kind Regards, Rich ... http://greatcirclelearning.com
    Thursday, July 14, 2011 4:32 AM

All replies