Free Support Forum - aspose.com

Comparing styles set of word document

<!–[if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:12.0pt; mso-para-margin-left:0in; line-height:12.0pt; mso-line-height-rule:exactly; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:"Times New Roman"; mso-bidi-theme-font:minor-bidi;}

<![endif]–>

Hi,

We are using Aspose.Words.dll version 10.0.0.0 for generating word documents using HTML

We have two-word document one is word template and other is normal word document. We have a requirement in which we have to compare that both document have same recommended style set or same collection of styles.

So in aspose, is there any way for comparing recommended style set of word document.

Please let us know if any solution is available.

Thanks

Samanvay.

Hi

Thanks for your request. Unfortunately, there is not direct way to compare styles in documents. However, I think, in your case, it would be enough to compare names of styles. Am I right? If so, you can simply get a collection of style’s names from both documents and compare these collections to find out whether the documents have the same set of styles.

Best regards,