I am having error while trying to print order. It’s saying “print tickets provider failed to retrieve printcapabilities. win32 error : -2147221500Attribute content in the option is invalid” Can anyone help me please?
[LAYOUT]
-- General layout
<T>Ticket
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C10>T H A N K Y O U
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}
[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}
try change printer type to Windows Printer
1 Like
Sorry Sukasem, I am having same error
Can you use nodepad to print.
It is Windows Error.
1 Like
Bahalul
October 16, 2017, 10:41pm
5
Did you mean demo printer (notepad) at printer type?
Bahalul
October 16, 2017, 10:42pm
6
there has no printing at that printer type. I mean it doesn’t do anything after clicking print bill
Shivan
October 16, 2017, 11:35pm
7
Try “Printer Type” as “Raw” or if that doesnt work. Keep changing that printer type to a different one until one works.
I would try keeping the character set to default value as well and see if that works.
Also for notepad to work, you must open the “Notepad” application then try to print to see if it can at least show the ticket print info in notepas. If it does then just change “Print Type” and change back “Print Share Name” to your printer name
Raw printer type doesn’t do anything either. Sorry.
I have tried all the printer type too. But no print.
open windows notepad and try to print some text from there.
google found:
http://www.hivmr.com/db/713zfz7pj87aczfa1k1z3sjz8pkdf8dd
1 Like
Jesse
October 17, 2017, 3:59pm
10
That would be a laser office printer. The printer type should be set to Windows printer. You may want to check the drivers for it.
1 Like
Bahalul
October 17, 2017, 4:59pm
11
Notepad print is working when i open notepad.
then i can print it from notepad.
But i need solution to print directly.
Bahalul
October 17, 2017, 5:01pm
12
I have got the driver from http://www.samsung.com/uk/support/model/ML-2165/XEU and it’s printing from google chrome , MS Word, Notepad etc. But I kindly need a solution for direct printing from SAMBAPOS5. Please
QMcKay
October 17, 2017, 5:17pm
13
You will need to use the Windows Printer setting in SambaPOS.
Try this:
But something related to Printer.
From Control Panel->Printers & Fax
1.Right Click the Printer and take Printer preferences
2.Change the Source property to ‘Manual Feed’& Apply.(Initially it was’AutoSelect’)
3.Still got some error.
4.Again me changed the Source property back to ‘Auto Select’& Apply.
5.Changed the Quick set Property to ‘Defaults’& Apply
5.Now its Working Fine
(source: [Solved] Error while printing in WPF.. - CodeProject )
1 Like
Bahalul
October 17, 2017, 5:27pm
14
There had printing preferences. I have tried to change from there still I am having error.
I don’t know what i have changed now but I am having new error message.
Is my print template okay?
[LAYOUT]
-- General layout
<T>Ticket
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C10>T H A N K Y O U
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}
[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}
I was trying to print this
QMcKay
October 17, 2017, 5:34pm
15
There is nothing wrong with your Template, however, it is in a format that contains things that are for “Ticket” (ESC/POS) Printer Type.
You can try either:
change SambaPOS setting back to Ticket Printer (ESC/POS Emulated).
change SambaPOS setting to HTML, and format your Template to use HTML.
Bahalul
October 17, 2017, 5:38pm
16
I have changed SambaPOS setting back to Ticket Printer (ESC/POS Emulated). but it doesn’t do anything or print. Just close the ticket
I have changed SambaPOS setting to HTML, and format my Template to use HTML. with same template i have used before but still same old error.
Bahalul
October 17, 2017, 7:56pm
17
JTRTech
October 17, 2017, 9:27pm
18
Have you set Windows printer type in samba, see screen shows of others but not Windows printer…
Why is you ticket screenshot so slim?
Can you show full width, just thinking perhaps you have some funky symbol or character in product name which is messing up the code.
Bahalul
October 19, 2017, 2:30am
19
Sorry JTRTech,
Here I am sending you all the screenshot again
[LAYOUT]
-- General layout
<T>Ticket
<L00>Date:{TICKET DATE}
<L00>Time:{TIME}
{ENTITIES}
<L00>Ticket No:{TICKET NO}
<F>-
{ORDERS}
<F>=
<EB>
{DISCOUNTS}
[<J10>Total Gift:|{ORDER STATE TOTAL:Gift}]
{SERVICES}
<J10>Total:|{TICKET TOTAL}
{PAYMENTS}
<DB>
<F>=
<C10>T H A N K Y O U
[DISCOUNTS]
<J00>{CALCULATION NAME} %{CALCULATION AMOUNT}|{CALCULATION TOTAL}
[SERVICES]
<J00>{CALCULATION NAME}|{CALCULATION TOTAL}
[PAYMENTS]
<J00>{PAYMENT NAME}|{PAYMENT AMOUNT}
[ORDERS]
-- Default format for orders
<J00>- {QUANTITY} {NAME}|{TOTAL PRICE}
{ORDER TAGS}
[ORDERS:Gift]
-- Format for gifted orders
<J00>- {QUANTITY} {NAME}|**GIFT**
{ORDER TAGS}
[ORDERS:Void]
-- Nothing will print for void lines
[ORDER TAGS]
-- Format for order tags
<J00> * {ORDER TAG NAME} | {ORDER TAG PRICE}
[ENTITIES:Table]
-- Table entity format
<L00>Table: {ENTITY NAME}
[ENTITIES:Customer]
-- Customer entity format
<J00>Customer: {ENTITY NAME} | {ENTITY DATA:Phone}
Here is with Sambapos demo menu that was installed with software.
Bahalul
October 22, 2017, 12:08pm
20
Can i have any luck by having this issue fix from you guys?
or at least a name of a Black white printer that support with my Smbapos5 in my Lenovo Windows 10 all in one pc (A5paper should be supported)?