Aspose::Words::MailMerging::MailMerge::get_RestartListsAtEachSection method

MailMerge::get_RestartListsAtEachSection method

Gets or sets a value indicating whether lists are restarted at each section after executing of a mail merge.

bool Aspose::Words::MailMerging::MailMerge::get_RestartListsAtEachSection() const

Examples

Shows how to control whether or not list numbering is restarted at each section when mail merge is performed.

auto doc = MakeObject<Document>(MyDir + u"Section breaks with numbering.docx");

doc->get_MailMerge()->set_RestartListsAtEachSection(false);
doc->get_MailMerge()->Execute(MakeArray<String>(0), MakeArray<SharedPtr<System::Object>>(0));

doc->Save(ArtifactsDir + u"MailMerge.RestartListsAtEachSection.pdf");

See Also