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:
objword = CreateObject("Word.Basic") objword.appshow() objword.fileNEW() objword.font("upca") objword.fontsize(30) objword.Insert(vbTab & Create(Convert.ToString(dataTable.Rows(0)(3)))) objword.font("times new roman") objword.fontsize(16) Dim aa As String = dataTable.Rows(iii)(1) Dim bb As String = dataTable.Rows(iii)(0) objword.Insert(aa) If (ii) Mod 3 = 0 Then objword.insert(vbCrLf & vbCrLf) Else objword.insert(vbTab) End If




Reply With Quote