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
create word final doc based on word template and aware data
-
- 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
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
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
V8.7 Developer Edition. Server 2016 Standard edition. MySql 5.5
-
- Posts: 370
- Joined: Sat Apr 28, 2018 3:33 am
- Location: India
- Contact: