Word Automation -Table Borders

Hello, Does anyone know How can I change the borders of the table created in word using Navision. I am generating table in word using the following : //Insert table for Lines wrdRange := wrdDoc.Sentences.Last; WrdTable := wrdRange.Tables.Add(wrdRange,Rows,7); Thanks, Sharan.

You need to refer to the Word Object Model. The Table Object has a Borders property that will allow you to set the borders for your table. WrdTable.Borders.OutsideLineStyle := 1; The 1 is equal to wdLineStyleSingle For a complete listing of the available line styles refer to the members of the wrdLineStyle class in the VBA object browser.