customize receipt

I am working with customizd receipt. What I need is to add some data in the standard receipt. I have stored the data to SessionClass.Variable(1) before printing receipt. I changed the xml template to show them. In the template, I refer them as the following:

Len(SessionClass.Variable2) "value 1:" SessionClass.Variable2

when printing, I got compile error says " token "SessionClass.Variable2" was not found" . Any one got ideas? What is the xml format of the receipt? Because SessionClass.Variable index starts from 0, I guess variable(1) should be the second. I tried SessionClass.Variable(1) as well, got same error.

Thank you for your help. Leanne

Reply to
Leanne
Loading thread data ...

Hi Leanne,

"SessionClass" is the name of the class, "Session" is the name of the local instance of that object. The session variables are numbered from one thru ten. Hope that helps.

Ken K Computer Analytics

Reply to
Ken K

Thank you Ken. I fixed that and now no problem there. But I still got error: "Token "row" not found. Have you got any more idea?

Leanne

Ken K wrote:

Reply to
Leanne

Leanne, the token is valid only within a ... token pair. You might consider moving your code so that it is located within an existing structure.

Ken

Reply to
Ken K

I fixed and it works now. Thank you again Ken. Leanne

Ken K wrote:

Reply to
Leanne

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.