How to create Templete document

Hi ,


How to create template document ( Like created in your examples DinnerInvitationDemo.doc ,EmployeesReportDemo.doc)

like these I want to create my own template document .where common text kept like MyName , MyAddress how to create it and replace in program with database values.



Regards ,

Jeevan Joshi

Hi Jeevan,


Thanks for your inquiry. Sure, please read the following article to learn how to create a Mail Merge template for use in Aspose.Words:
http://www.aspose.com/docs/display/wordsnet/Prepare+a+Document

Also, please watch the following video:
http://youtu.be/U5QIbWR_1hg

I hope, this helps.

Best regards,

Hi Awais ,

Thanks this solved my problem .

One more question as I can set mergefield for text

Same way can I set field for Image (Picture) so that I can fill image whose URL fetched form Database.


Regards ,
Jeevan Joshi

Hi Jeevan,


Thanks for your inquiry.

Sure, you can specify a field name prefix, for example Image:MyFieldName in the document to be able to directly merge images during Mail Merge. Please visit the following link to learn more about inserting images using Mail Merge:
http://www.aspose.com/docs/display/wordsnet/How+to++Insert+Images+from+a+Database

Please let me know if I can be of any further assistance.

Best regards,

Hi Awais ,

Thanks that solved my problem.


Regards ,
Jeevan Joshi.

Hi Jeevan,


It’s great you were able to find what you were looking for. Please let us know any time you have any further queries.

Best regards,