If you are going to view the document and do not want to change it...
If you are going to view the document and do not want to change it...
To view the contents of a closed Document object, call the Open method with the FALSE value as the parameter. After the successful method execution the object is open for reading.If you do not need to view the properties of the document any more, you can close it using the Close method. In this case the document is closed and the resources are freed.
If you are going to edit the document...
If you are going to edit the document...
Before editing the document which is currently closed, you should call the Open method with the TRUE value as the parameter.After the successful method call the closed document will be open for reading and writing.
If you want to save the results of the document editing...
If you want to save the results of the document editing...
- Before saving, verify the changes made to the document using the CheckRules method. You will be able to save the results even if some rules show errors.
- You can save the changes made to the document and close it. To do this, call the Close method with the TRUE parameter.
- You can save the changes made to the document and proceed with editing. To do this, call the Save method.
- You can save the changes made to the document and keep it as open for reading. To do this, you can reopen the document by calling the Close method with the TRUE parameter and then call the Open method with the FALSE value as the parameter.
If you do not want to save the results of the document editing...
If you do not want to save the results of the document editing...
- If you want to close the document and do not want to save changes made to it, call the Close method with the FALSE parameter.
- If you want to keep the document as open for reading and do not want to save changes made to it, you can reopen the document by calling the Close method with the FALSE parameter and then call the Open method with the FALSE value as the parameter.
