create word final doc based on word template and aware data

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

create word final doc based on word template and aware data

Post by swiftinitpvtltd »

I see one thread thats 12 years old.
https://www.awareim.com/forum/viewtopic ... 347&p=9473
is there any better way or easy way to merge word template with aware BO data and create final word doc?
word template
<<awarebocustname>>
<<awarebocustaddress>>

final document-
customer 1
customer1address-mumbai-India
rocketman
Posts: 1252
Joined: Fri Jan 02, 2009 11:22 pm
Location: Preston UK
Contact:

Re: create word final doc based on word template and aware d

Post by rocketman »

create a placeholder attribute of the document type to hold the merged document eg Customers.letter (note in the example I've used Members instead of customers because I've just pasted some of my code for speed

create your word document with the necessary tags eg <<Customer.Name>> << Customer.Address>> etc etc, you can also use the LIST_LINE functions to pull in sub tables,

create a process that a) Finds your document template eg FIND UserDefDoc WHERE UserDefDoc.UDD_Name='Renewal Letter'
b) finds all the customers you need to merge into the document eg FIND Member_REnewal_Email_List
c) chains to process 2
create another process(process 2) using Customers and userdefdoc as input. It just needs one line
Members.RenewalLetter=UserDefDoc.UDD_Name

The merged document is stored in (my case) Members.RenewalLetter

You can then print it, attach it to an email - do whatever you want with it

Hope this helps
Rocketman

V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
swiftinitpvtltd
Posts: 370
Joined: Sat Apr 28, 2018 3:33 am
Location: India
Contact:

Re: create word final doc based on word template and aware d

Post by swiftinitpvtltd »

Thank you!
Post Reply