Avery label Print Template

How to create label using Avery template ?

Here it is
use the following xml
<Root>
<Row>
<Code>001</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>
<Row>
<Code>002</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>


<Row>
<Code>003</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>

<Row>
<Code>004</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>

<Row>
<Code>005</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>

<Row>
<Code>006</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>

<Row>
<Code>007</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>

<Row>
<Code>008</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>

<Row>
<Code>009</Code>
<Part>100</Part>
<Id>01</Id>
<Supplier>K0G</Supplier>
</Row>


</Root>



Use the following code in Template.

In the first shape add this
<?for-each@shape:/Root/Row[(position() mod 3) = 1]?><?Code?><?shape-offset-y:(position()-1)*72?><?end-for-each?>

In the second column shape add this
<?for-each@shape:/Root/Row[(position() mod 3) = 2]?><?Code?><?shape-offset-y:(position()-1)*72?><?end-for-each?>


In the third column shape add this
<?for-each@shape:/Root/Row[(position() mod 3) = 0]?><?Code?><?shape-offset-y:(position()-1)*72?><?end-for-each?>



Sample on how to do , have a look at this.



Comments

Anonymous said…
I cannot make this work. By any chance can you post the actual rtf template file for downloading so I can test this? Thanks.
Anonymous said…
I can now make this work, but not exactly correctly. The template in BIP as a PDF displays an 11 row, instead of 10 as in the actual rtf, and it goes off the bottom of each page. The second problem is I don't know how to create line breaks or carriage returns to have different fields on different lines. Can anyone help with these two issues?
Unknown said…
Thanks for your good xml coding, can I have the code for printing column wise 10x3, i.e., first column has 1 - 10, 2nd has 11 - 20, 3rd column has 21-30., there are 10 in each column. kash_22033@yahoo.com
Thanks, Kash
kalekahane said…
Harrah's Cherokee Casinos & Resorts - MapYRO
Discover Harrah's Cherokee Casinos & Resorts locations, 진주 출장안마 rates, 하남 출장샵 amenities: expert 경상남도 출장샵 Cherokee research, only 안성 출장안마 at Hotel and Travel 천안 출장안마 Index.

Popular posts from this blog

Repeat Table Header in all pages in BIP

Limit rows per page

BIP Formatting