Printer issue: print tickets provider failed to retrieve printcapabilities. win32 error : -2147221500Attribute content in the option is invalid

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?
image image



[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

Did you mean demo printer (notepad) at printer type?

there has no printing at that printer type. I mean it doesn’t do anything after clicking print bill

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

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

Notepad print is working when i open notepad.
then i can print it from notepad.
But i need solution to print directly. :frowning:

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

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: https://www.codeproject.com/Questions/229582/Error-while-printing-in-WPF)

1 Like

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.
image

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
image

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.

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. :frowning:
image

Now I have added another printer
image
and still same error
Printer type: HTML image
Printer Type: Windows Printer image

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.

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.


Can i have any luck by having this issue fix from you guys? :frowning:

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)?