Free Support Forum - aspose.com

Word Badge using Msword and Php

Hi,
I need a Badge Printing Concept in Word Document

Like this I have attached image .

In Word Each Page can have minimum four Badges. If it is more means it should come to next Page, So this Concept i need to do Saapose Mail Merge, How to design the template using Word document before parsing XML, Please Help me

I have attached image to this mail id :notifications-support@saaspose.zendesk.com


Submitted from: http://saaspose.com/

Hi Allen,

Please check ticket 214 for a detailed example.

Best Regards,
Muhammad Ijaz

Support Developer, Saaspose
Sialkot Team
http://www.saaspose.com

Hi,

Am creating badge , In above attached word document, I need just to print four badges in my word document,....How to go to new page in word document. Please check my word document, some of the badges are cutting down to another page

Thanks

Allen

Hi Allen,

This is output document; can you please also attach your source document?

Best Regards,
Muhammad Ijaz

Support Developer, Saaspose
Sialkot Team
http://www.saaspose.com

Hi,

Here my Coding and Xml with Input Document is attached please check .

Please download Test as Input Document....Please also Add sample image from Xml to Word

Thanks

Allen

Hi Allen,

You can insert a page break after 4 items to display only 4 items on each page. I have modified your document and XML a bit. Please check attached document and XML for reference.

I have added one extra foreach block which encapsulates your foreach block and inserted a page break after inner foreach block. XML has also been updated to display only 4 items in the inner foreach block.

Please feel free to contact us in case you have further comments or questions.

Best Regards,
Muhammad Ijaz

Support Developer, Saaspose
Sialkot Team
http://www.saaspose.com