Print Receipt through COM

May 25, 2005 7 Replies

I've created a dll does some calculations and stores it in the db. This dll is triggered when a trasaction is tendered out. So far everthing work great.



Now, when the trasaction is tendered out the customer get a sales receipt. I want to create an "additional" seperate receipt that prints out some info that the dll calculates to give to the customer. I can create a xml receipt template, but how do I call the custom receipt from my dll.



TIA



Each register have two printer, you can use first printer to print standard receipt, and second printer to print the additional receipt through an add-in that enable/disable the print...

bye antonio

HI Antonio,

Thanks for your reply, not sure I understand, we have only one receipt printer and would like to use that without buying another printer. I guess I need help trying to figure out how to:

- Send the calculate data to the xml receipt template

- How to tell my com object to print the xml receipt template.

Thanks

You can use the same printer.. with different receipt...

you can use session.variable[1..10] ..

enable/disable second printer..

bye antonio

Hi,

Still confused about your comment "enable/disable second printer.. "

I have only one printer. Do you have a line of code I could look at that would call the receipt template.

Thanks

You only need 1 physical printer, in manager turn on the second printer and call it something like printer2 and at the register set up printer2 as the same printer as printer1 (two OPOS names for the same device)

Yes ^_^

and a custom hook that enable/disable the printer2 into qsrules before receipt print hook ...

thank you /root

Antonio

Thanks for the reply, but how do I call that custom receipt xml template through code.

Join the Discussion

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

Didn't find your answer?

Ask the community — no account required