Hey, I am planning to use aspose for Word mail Merge and my requirement is to generate 100,000 pages document after mail merge a word template (1 page template).
Document doc= new Document(“template\file.dotx”);
My client wants a single file for all 100,000 pages and I am trying with aspose.words for DOT NET latest version of library.
Dataset ds= new Dataset();
My dataset has 100,000 records to be merged with template.
Doc. MailMerge.Execute(ds);
This will allow me to merge all 100,000 records in template.
However I notice that we have couple of issues and need you guys input.
-
Can we replace Dataset with String Arrays and how to merge 100,000 pages in a single file without compromising performance? Which is the best way for aspose to mail merge in this case? Which approach(datatable or string array) will take less time and memory? Please give me samples if you have.
-
If I go with datatable while mail merges for over 50,000 Pages I am encountering Memory out of exception. Do you have any upper limit for no of pages or any such limitation when it comes to mail merging?
Please help