0

I'd like to programatically add a page border to a document being created.

The Macro code from Word is

  With Selection.Sections(1)
        With .Borders(wdBorderLeft)
            .LineStyle = wdLineStyleThinThickSmallGap
            .LineWidth = wdLineWidth300pt
            .Color = wdColorAutomatic
        End With
  End With

I can't fathom out how to convert this, if indeed it is possible, the only thing i seem to be able to come up with is some 3rd party add in (spire.doc) but don't have the funds for this.

Anyone with any ideas?

Thanks

2
Contributors
2
Replies
7
Views
4 Years
Discussion Span
Last Post by pedders
0

Thanks Beginnerdev but that solution is the 3rd party addon I specifically did not want to use as I don't have the funds for long term use of this particular addon (only a free trial).
I am already trying to use the Word.Interop but this particular function is evading me at present.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.