hi i am trying to insert some text in a word document and format it automatically, yet there are two thing that I need help with.
I dont know how to change the margins of the word doc and i dont know how to change the line spacing please help me with these two things.

VB Code:
  1. objword = CreateObject("Word.Basic")
  2.         objword.appshow()
  3.         objword.fileNEW()
  4.                         objword.font("upca")
  5.                         objword.fontsize(30)
  6.                         objword.Insert(vbTab & Create(Convert.ToString(dataTable.Rows(0)(3))))
  7.                         objword.font("times new roman")
  8.                         objword.fontsize(16)
  9.                         Dim aa As String = dataTable.Rows(iii)(1)
  10.                         Dim bb As String = dataTable.Rows(iii)(0)
  11.                         objword.Insert(aa)
  12.                         If (ii) Mod 3 = 0 Then
  13.                             objword.insert(vbCrLf & vbCrLf)
  14.                         Else
  15.                             objword.insert(vbTab)
  16.                         End If