![another word for missing somone another word for missing somone](https://www.usurnsonline.com/wp-content/uploads/2014/09/missing-you-honest-quotes-about-grief-ill-miss-you-forever.jpg)
Private void WordApplicationDocumentBeforeClose(Document doc, ref bool cancel)ĭialogResult dr = MessageHandler.ShowConfirmationYnc(String.Format(Strings.DocumentNotSavedMsg, _documentTitle), Strings.DocumentNotSavedCaption) _currentWordDocument = _wordApplication.ActiveDocument
![another word for missing somone another word for missing somone](https://www.spiritbutton.com/wp-content/uploads/2018/02/3-2-e1519805421429.jpg)
_wordDocuments.Add(_path, wordApplication) WordApplication.DocumentBeforeClose += WordApplicationDocumentBeforeClose Word.Application wordApplication = new Word.Application()
Another word for missing somone code#
I am using the following code to open the document and handle the BeforeDocumentClosed event: public void OpenDocument(string filePath, Protocol protocol, string docTitle, byte document)įileUtility.WriteToFileSystem(filePath, document) This error is commonly encountered when a read lock is set on the file that you are attempting to open. I don't have any problems with opening, saving, and closing when they open 1 document, however, when they open multiple documents simultaneously, I get the following error when closing any of my instances of Word: The file is in use by another application or user. There is a list of documents loaded and the user can open only 1 instance of each document, but can open multiple different documents simultaneously. After the document is created, I retrieve the document from the database, write it to the file system in a temp directory, and then open the document using the Word Interop services. I have a WinForms application where I am using Word Automation to build documents via a template, and then save them to the database.