Problem with Barcode tag in printer template

I just recently updated to 5.7.14

With this update I have a problem printing a barcode on a receipt. It is throwing this popup error:

There is a problem

Message:
Length can not be less than zero.
Parameter name: Length

I am pretty confident it is the barcode because when I comment out the barcode line, there is not error message.

I have tried all the variation of the barcode tag <BAR>,<BAR13>, <BAR39>, <BAR08>, <BAR93>, <BAR11> & <BAR25> <QR> does not give the error, but does not print the QR code.

I have tried hard coding the numbers behind the bar tag.

Here is the error log:

12/20/2024 9:25 PM
-----------------------------
[General Info]

Application: SambaPOS
Version:     5.7.14
Region:      en
DB:          SQ
Machine:     LAPPY-IV
User:        Bob
Date:        12/21/2024
Time:        3:25 AM

User Explanation:

Bob said ""
-----------------------------

[Exception Info 1]

Top-level Exception
Type:        System.ArgumentOutOfRangeException
Message:     Length cannot be less than zero.
Parameter name: length
Source:      mscorlib
Stack Trace: at System.String.Substring(Int32 startIndex, Int32 length)
   at Samba.Services.Implementations.PrinterModule.LinesToFlowDocumentConverter.ConvertTagsToHtml(String[] lines, Printer printer)
   at Samba.Services.Implementations.PrinterModule.LinesToFlowDocumentConverter.ConvertLinesToFlowDocument(String[] lines, Printer printer)
   at Samba.Services.Implementations.PrinterModule.PrinterService.PrintTicketToFlowDocument(Printer printer, Ticket ticket, PrinterTemplate printerTemplate)
   at Samba.Presentation.Services.Implementations.ReportService.GetTicketPreview(PrinterTemplate printerTemplate, String printerName)
   at Samba.Management.PrinterModule.PrinterTemplateViewModel.OnTicketPreview(String obj)

-----------------------------

[Assembly Info]

mscorlib, Version=4.0.0.0
PresentationFramework, Version=4.0.0.0
PresentationCore, Version=4.0.0.0
System, Version=4.0.0.0
WindowsBase, Version=4.0.0.0
Samba.Services, Version=5.7.14.1210
System.ComponentModel.Composition, Version=4.0.0.0
System.Configuration, Version=4.0.0.0
DevExpress.Xpf.Core.v17.2, Version=17.2.13.0
System.Xaml, Version=4.0.0.0
Samba.Presentation.Services, Version=5.7.14.1210
Samba.Infrastructure, Version=5.7.14.1210
Microsoft.Practices.Prism, Version=4.0.0.0
Samba.Domain, Version=5.7.14.1210
Microsoft.Practices.Prism.MefExtensions, Version=4.0.0.0
Samba.Presentation.Common, Version=5.7.14.1210
System.Drawing, Version=4.0.0.0
System.Core, Version=4.0.0.0
DevExpress.Data.v17.2, Version=17.2.13.0
Microsoft.Practices.ServiceLocation, Version=1.0.0.0
Samba.Localization, Version=5.7.14.1210
Samba.Persistance, Version=5.7.14.1210
FastButton, Version=1.0.0.0
Samba.Infrastructure.Data, Version=5.7.14.1210

-----------------------------

[System Info]

Operating System
-Microsoft Windows 11 Pro
--CodeSet = 1252
--CSDVersion = 
--CurrentTimeZone = -360
--FreePhysicalMemory = 4524692
--OSArchitecture = 64-bit
--OSLanguage = 1033
--ServicePackMajorVersion = 0
--ServicePackMinorVersion = 0
--Version = 10.0.22631

Machine
-LAPPY-IV
--Manufacturer = SAMSUNG ELECTRONICS CO., LTD.
--Model = 950QDB
--TotalPhysicalMemory = 16837500928
--UserName = LAPPY-IV\Bob

-----------------------------


######################### E N D #########################

Any guidance is greatly appreciated!

Template

<L>
<BAR>123


First <L>

1 Like

Thank you, that did the trick! It is working now.


[='{TICKET TYPE}'=='Paket Servis'?'<div style="font-size:0.1px;font-family:Calibri"><table><tr><td width=1 align=Center>.</td><td width=249 align=center><L><!rn><BAR>{TICKET ID}<!rn></td></tr></table></div>':'']

HTML

1 Like