locked
Help with setting up some Word tables RRS feed

  • Question

  • User-597362741 posted

    Hi,

     

    I'm trying to build a word document via code (vb.net) .  At the moment its going okay, however I am getting stuck on some areas.

    I've added a table.  I now wish to remove the spacing from the table (or cells).  I've tried to create the macro which produces this code to offer some clues:

    Selection.Style = ActiveDocument.Styles("No Spacing")

    However I can't get this to work in the asp.net page?

    Here is the code that I have used to create the table:

    WTableTop = WrdDoc.Tables.Add(Wrd.Selection.Range, 10, 4) 

    Any help appreciated.

    Saturday, July 10, 2010 10:50 AM

Answers