We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Mail Merge - Spell Check

I’m currently using the following code:


Aspose.Words.Document summaryDoc = new Aspose.Words.Document(System.IO.Path.Combine(_folderPath, “SummaryTemplate.docx”));
summaryDoc.MailMerge.Execute(summaryFields, summaryValues);
summaryDoc.MailMerge.CleanupOptions = MailMergeCleanupOptions.RemoveUnusedRegions;
summaryDoc.MailMerge.FieldMergingCallback = new HandleMergeListNumberResetter();
summaryDoc.MailMerge.ExecuteWithRegions(summarySet);


When the file is then displayed, any text that was in the merge fields is no longer spell checked by Word. How do I enable this?

(I checked my template document “SummaryTemplate.docx” and spell check is turned on for the document)
Hi Miles,

Thanks for your inquiry. Please use Font.NoProofing property to check either the formatted characters are set to be spell checked or not. The value of this property is true when the formatted characters are not to be spell checked.

To ensure a timely and accurate response, please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we'll start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.

Can you tell me where the Font.NoProofing is set? (What object?)


I tried to google “Aspose Words Font.NoProofing” and the only result that looks like it’s something I wanted returned a 404 on your site.

Can you give me a quick example from only having a Aspose.Words.Document object?
Hi Miles,

Thanks for your inquiry. Please use Run.Font.NoProofing property to achieve your requirements. Hope this helps you.

Document doc = new Document(MyDir + "in.docx");

foreach (Run run in doc.GetChildNodes(NodeType.Run, true))

{

run.Font.NoProofing = false;

}