I am trying to detect if the .doc file contains macro or not depending on which i’ll convert it to docx or docm ,I am using Aspose.Words for .Net and the file version of dll is 13.10.0.0 and product version is 2013.10.31
I am using .HasMacros property
Document doc = new Document(“C:\Test\Test.doc”);
if(doc.HasMacros)
{
//Yes
}
else
{
//No
}