Hi,
I am developing front end POS system. In my application, it may required to print receipt/invoice based on different printers using direct print/??? to improve the printing speed. The printers used could be dot matrix with A4 paper or EPSON receipt printer.
To do this, I am using Strategy design pattern that will have a printmanager, it will create the corresponding object based on printmethod request. The classes are dotmatrixA4 and epsonreceipt. Each class will have hardcoded ??? command to print.
Is it the way to design?
Also, I have problem of different client may request different format of receipt/invoice. How should I design this ?
Pls advise
Thank you
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...