Results 1 to 11 of 11

Thread: [RESOLVED] Word Interop - Add paragraph and InsertFile

Threaded View

  1. #6

    Thread Starter
    Powered By Medtronic dbasnett's Avatar
    Join Date
    Dec 2007
    Location
    Jefferson City, MO
    Posts
    9,897

    Re: Word Interop - Add paragraph and InsertFile

    I tried several of the suggestions and they didn't work.

    What eventually did work was this,

    Code:
                                    Dim strt As Integer = rng.Start
                                    rng.Text = _schn & Environment.NewLine & Environment.NewLine
                                    rng = docAChap.Range(Start:=DirectCast(strt, Object), End:=DirectCast(docAChap.Content.End, Object))
                                    rng.Font.Bold = 1
                                    rng.ParagraphFormat.Alignment = Word.WdParagraphAlignment.wdAlignParagraphCenter
    Thanks all for your assistance.

    Going to work on the file now...
    Last edited by dbasnett; Mar 24th, 2016 at 09:10 AM.
    My First Computer -- Documentation Link (RT?M) -- Using the Debugger -- Prime Number Sieve
    Counting Bits -- Subnet Calculator -- UI Guidelines -- >> SerialPort Answer <<

    "Those who use Application.DoEvents have no idea what it does and those who know what it does never use it." John Wein

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width