close microsoft word from vb.net
Hi!
First sorry for my bad english!
I have a problem
i open in a vb.net programm a windows document:
xlApp = CreateObject("Word.Application")
xlApp.Documents.Add(template:="g:\vertrieb_Abo_Mark\worddateien\VBAWordvorlagen\angebottest.dot")
xlApp.Visible = True
xlApp.WindowState = Word.WdWindowState.wdWindowStateMaximize
now i want that the opened document only print out the site and then close!
How can i close it?
and when i close it then comes the question :
Do you want to save changes in document1? "Yes" "NO" "Cancel"
The document should be never saved!
Thanks for help