WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with Word

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Word SaveAs OLE Code

Keywords: 	 Word SaveAs msword.exe

cAPP = ObjectOpen("Word.Application")
oDOC = cAPP.Application
oDOC.visible = @true
oDOC.ChangeFileOpenDirectory("C:\windeal\")
oDocument =oDOC.Documents
oDocument.Add
oSelection = oDOC.Selection
oSelection.TypeText("Here is Your Graph,")
oSelection.TypeParagraph
oSelection.Paste
oActive = oDOC.ActiveDocument
oActive.SaveAs("wordsamp.doc")

oActive.Close

objectclose(oSelection)
objectclose(oDocument)
oDOC.Quit
objectclose(oDOC)





Article ID:   W14482
Filename:   Word SaveAs.txt
File Created: 2001:01:22:16:14:46
Last Updated: 2001:01:22:16:14:46