I am using word 2007. I have a style “Caption” which is not in “In current document” option, but is a part of “All styles” option of the “Style Pane Options”. Now after I convert this “.doc” document to “.docx” document using Aspose.Words by the function mentioned below, I get the caption style as part of the “In current document”. Why is this style appearing in the “In current document” option after converting while it is not appearing before conversion?
I am using Aspose.Words version 5.2.0.0 and I have a license for it.
CODE:
public static void ConvertDocToDocx(string strDocInputLocation, string strDocxOutputLocation)
{
try
{
Document aspoDoc = new Document(strDocInputLocation);
aspoDoc.Save(strDocxOutputLocation, SaveFormat.Docx);
}
catch (Exception exception)
{
throw new ApplicationException("Failed to convert Word 2003 format to Word 2007.", exception);
}
}