Hi,
You can open a word or Excel file using condition, and it will not close automatically.
if (condition)
{
this.Application.Documents.Open(@"C:\Test\NewDocument.docx");
}
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Using C# how to achieve this or implement this feature.
For my windows application a word or excel file will open based on the conditions and once opened the user will do some changes in the file like editing and adding a new contents to it and it should not close automatically we need to stop closing the environmental file which is already opened and it should be opened till the last step of instructions.
Can anyone suggest me any ideas for this and it will be helpful for me.
Thanks in advance.
Hi,
You can open a word or Excel file using condition, and it will not close automatically.
if (condition)
{
this.Application.Documents.Open(@"C:\Test\NewDocument.docx");
}