i need to export word document with executewithregions option using mailmerge. now i have to upload 10000 records into word document from the sql server database. when i fetch total 50000 records from database then i am getting timeout error. so i need to fetch 1000 records at a time from the database. And those records should be downloaded to word document. when i use for loop to upload only first 1000 records are getting downloade. all remaining records are not getting downloaded.
So could you please help me. is there any option in executewithregions to upload into word in multiple times