insert a table in word document.

vijaydidmca2003vijaydidmca2003 Member Posts: 27
can you tell me how should i insert a table in word document.
and called values from navision table into this word document table using automation.
pls give me a complete coding,so that i will be thankful to you.
regards
vijay tiwari.
vijaydidmca@yahoo.com.
thanks again. :?:

Comments

  • squelchsquelch Member Posts: 2
    You should be able to use Word's OLE, here's a little snippet that I use in another app:
    wApp = CreateObject("Word.Application")
    wDoc = wApp.Documents.Add()
    wSelect = wApp.Selection
    wTable = wSelect.Tables.Add(wSelect.Range, 2, 2)
    wTable.Cell(1, 1).Select
    Word.Application.Selection.TypeText("Some words")
    
  • vijaydidmca2003vijaydidmca2003 Member Posts: 27
    thanks squelch.

    your coding solved my problem.

    thanks again................... :D
Sign In or Register to comment.