Hi,
im having a hard time handling documents closing, each new document is opening in a new window, i need that window to close if they try closing the document.
problem is if i try adding any code to the documentbeforeclose event it stop the window from closing and it must be done manually, after experimenting a little trying app.quit and moving things around, i had even more problems.
1, if i release the document object in the documentbeforeclose event will that cause problems? and how to get around that
2, app.quit isnt working if i use it in the documentbeforeclose event
3, im having a hard time visualising 1 app object with more then 1 window and multiple documents,
this is the simple layout i have with the objects
word.application object i am storing in a module for the project
each Document object is stored in seperate instances of a class i created which stores the information i associate and collect with the document (its these class instances im releasing when the user closes a document)
im using the list(of T) for the collection of my class
anyone have any tips on how i should be handling multiple documents in multiple windows
im having a hard time handling documents closing, each new document is opening in a new window, i need that window to close if they try closing the document.
problem is if i try adding any code to the documentbeforeclose event it stop the window from closing and it must be done manually, after experimenting a little trying app.quit and moving things around, i had even more problems.
1, if i release the document object in the documentbeforeclose event will that cause problems? and how to get around that
2, app.quit isnt working if i use it in the documentbeforeclose event
3, im having a hard time visualising 1 app object with more then 1 window and multiple documents,
this is the simple layout i have with the objects
word.application object i am storing in a module for the project
each Document object is stored in seperate instances of a class i created which stores the information i associate and collect with the document (its these class instances im releasing when the user closes a document)
im using the list(of T) for the collection of my class
anyone have any tips on how i should be handling multiple documents in multiple windows