In my ASP.NET windows application, i have to manipulate Word 2007 document.So, i am using Microsoft.Interop.Word package for that work.For normal document it is working correctly...
At the same i have to open some type of corrupted file also.for example,header/footer losses,alignment losses...
So, i was opened files like that below...
wordDocument = wordApplication.Documents.Open(ref paramSourceDocPath, OpenAndRepair:true);
So, Now it is working fine with above mentioned case except header/footer lose case.
When i open the document it displays this below mentioned dialog box for confirmation.So, I have to pass this dialog without showing for user confirmation...
After clicking the close button in the dialog box then the document opened correctly...
So,Please guide me to get out of this issue...
If you want to suppress this Show Repairs dialog, you can use the Documents.OpenNoRepairDialog method to open your word document instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With