Author Topic: Printers Line Character Count  (Read 5843 times)

lemmings

  • Full Member
  • ***
  • Posts: 165
Printers Line Character Count
« on: July 27, 2013, 04:57:36 pm »
Just checking, am I right in assuming that the Line Character Count in the Printer setup section relates to the line width the printer is capable of.

Iam having some errors where SambaPos shutsdown when printing which is due to totalWidth receiving a negative number, this seems to happen when long product names are used on tickets, bills or receipts so I assume that we are going over the line width of the printer (ie mine is currently set at 42).

I was looking at changing the Line Character Count is account for this but just wanted to make sure that this does relate to the printer line width

emre

  • SambaPOS Developer
  • Samba Team
  • Hero Member
  • *****
  • Posts: 1564
Re: Printers Line Character Count
« Reply #1 on: July 28, 2013, 04:04:17 am »
Yes there is such problem but as I can remember it only generates error for <T> tag. <J> or other alignment tags should trim long names.

lemmings

  • Full Member
  • ***
  • Posts: 165
Re: Printers Line Character Count
« Reply #2 on: July 28, 2013, 10:36:27 am »
Thanks. I added the ticket time to the title tag and this issue has only occured since I changed that.

I will just amend the layout.

Why would totalWidth be getting a negative parameter, cause it is quite hard to replicate I been having trouble debugging using VS Studio, at least I have an idea that its only caused by the alignment tags.