Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Here is an attempt to help get you started.
filetocreate = "C:\temp\wordsamp.doc" oAPP = ObjectOpen("Word.Application") oDOC = oAPP.Application oDOC.visible = @true oDOC.ChangeFileOpenDirectory(FilePath(filetocreate)) oDocument =oDOC.Documents oDocument.Add oSelection = oDOC.Selection oSelection.TypeText("Here is Your Table") oRange = oSelection.Range oActive = oDOC.ActiveDocument oTables=oActive.Tables wdWord9TableBehavior = 1 wdAutoFitFixed = 0 oTables.Add(:: Range = oRange,NumRows=20,NumColumns=2,DefaultTableBehavior=wdWord9TableBehavior, AutoFitBehavior=wdAutoFitFixed) ;{Add code here to file table} Pause("Debugging",StrCat("DONE - Check the contents of the file ",filetocreate)) oActive.SaveAs(StrCat(FileRoot(filetocreate),".",FileExtension(filetocreate))) oActive.Close oDOC.Quit objectclose(oTables) objectclose(oActive) objectclose(oRange) objectclose(oSelection) objectclose(oDocument) objectclose(oDOC) objectclose(oAPP)
Article ID: W16142
File Created: 2004:03:30:15:42:58
Last Updated: 2004:03:30:15:42:58