Align receipt column to the left

Sep 10, 2007 2 Replies

Hi All, I have the following XML code from my a4 receipt. All I am trying to do is make the row "||Discount||" Entry.ReasonDiscount.Code "|"



align left so that it appears under my lookup code or description (i'm using entry.comment)



I cannot seem to get this to work and I am very confused by the alignment command. Can anyone please help? It's an full page receipt using Opos drivers.



I have included the code concerned below;


HeaderHeight + MarginTop "Small" tbNone LineColor



"" PageWidth * 0.10 "Quantity"



">" PageWidth * 0.11 "Price"



">" PageWidth * 0.14 "Extended"


ShowLineDiscounts & (Entry.ExtendedDiscountPurchased 0) Entry.Item.ItemLookupCode "|" Entry.Comment "|" Entry.Quantity "|" Entry.FullPrice "|" Entry.ExtendedFullPrice



Entry.DiscountNegative 0 "||Discount||" Entry.ReasonDiscount.Code "|" Entry.DiscountNegative "|" Entry.ExtendedDiscountNegative



Entry.Item.ItemLookupCode "|" Entry.Comment "|" Entry.Quantity "|" Entry.Price "|" Entry.ExtendedPrice


hi Matty, I have looked at your code and its need some modifiction, like you see the header columns it is 5 but printable columns are more if you look carefully your code:

"||Discount||" Entry.ReasonDiscount.Code "|" Entry.DiscountNegative "|" Entry.ExtendedDiscountNegative

Should be : "|Discount|" Entry.ReasonDiscount.Code "|" Entry.DiscountNegative "|" Entry.ExtendedDiscountNegative

Also check that columns headers are 5 instead 6 i bellieve you modified it. confirm and i checked it works.

Rate me Regards

"matty102" wrote:

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required