AppendDoc using ClASSIC ASP

I have what seems to be a complicated mail merge need. I need to merge what I would refer to as member card, which has simple demographic data and two separate mail merge regions. I’m able to accomplish this with doing a simple merge and subsequent region merges. The problem is that there are two member cards per document and not sure of the best way to do this.

After reading other post is seems the best way is to have a master document and append subsequent documents for each member but the problem still exist having two cards per document. Any suggestions?

Thanks in advance

It is not entirely clear from your post whether this two member cards that should be in the document must be identical. I presume they are. If that is the case, then the best option is to

  • have a template with one master card,
  • merge it with data for each person,
  • clone the resulting document to create an identical copy,
  • then append the copy with the original to get two master cards in one document,
  • then save the resulting document.

Try this approach and keep me posted of your progress - I will try to help you along the way.

Best regards,

miklovan - I apologize for not explaining clearly. The document has two cards and merge info will be for two seperate records - I can upload an image of a finish document for more clarity. Now, if I was only doing a simple merge I can simply put {next} after the merged information for the 1st card so the 2nd card on the same document gets populated with information from the second record. My problem is… both the cards will have two sperate area on the card where I need to do region merge.

Another way to think about this - this is setup much in the same way as labels but with only two and each label has simple and region mailmerge. So my problem is I want to complete the merge for one then do {next} so the other is poulated with information from the next record.

What is the best way to do this and can the solution be accomplish with COM

Yes, please send me an example document. It will help me to understand your task better.

For specifics related to using Aspose.Words in classic ASP applications please refer to the following Wiki articles:

https://docs.aspose.com/words/net/supported-platforms/#com

https://docs.aspose.com/words/net/supported-platforms/#com

Best regards,

I responded to the automated email with an attachment of my mail merge document. I was not sure if that was the right way to send you the doc and if not let me know. Any help you can provide would be appreciated and contingent on us purchasing the component, as deliverables are expected for the end of year

I figured out how to do the attachment and you should have it now

I think I have figured out how to do this kind of merge.

First of all you should remove the second NEXT field in your template. It is not necessary. There should be only one next field in between two cards.

The merge should go as follows:

  1. Do a simple merge with Persons data table - I mean table that contains person data such as name, DOB, etc. As a result the document will grow - extra pages with cards will be added automatically by Aspose.Words mail merge engine.

  2. As a result of the previous step the ‘omr’ regions will also be duplicated. You will have as many of them as a number of persons merged. You then need to loop for each person. In each iteration you should get a DataTable with ‘omr’ data for a next in turn person and do a MergeWithRegions with it. Every MergeWithRegion will merge only one Region, beginning from the document start.

In the end you will have a resulting document with the filled card for each person.

I have tested it on some dummy data and it works ok. Please let me know if that worked for you.

Best regards,

Outstanding! I was able to solve my pringting needs based on your suggestions. I completely appreciate both your patience and help - moving forward with purchase.

Thanks Again –