1  Lantica Discussions / Lantica Discussion / Problem with PrintString on Linux.
 on: Apr 30th, 2026 at 5:26pm 
hi all

I'm using Sasame Linux for some applications and generating HTML reports perfectly and without problems, but there's a report to be printed directly to the printer or as a PDF using the "PrintString" code. However, when I try to print the code on an HP LaserJet 107w printer, it prints this error:
PWG ERROR - CPLG] Decoding Fail
POSITION ox30 (48)
SYSTEM: emul/PWG/PWG
LINE 237
VERSION v11 .73 190212
ERROR CODE 11-1114
When I switch to a Virtual PDF printer, it generates a blank PDF file.
The mechanical printer is an HP LaserJet 107w.
The operating system is Manjaro.
Does anyone have any suggestions to solve this printing problem using PrintString for output to both the mechanical printer and the Virtual PDF printer?  Embarrassed Embarrassed

2  Lantica Discussions / Lantica Discussion / Re: Mass Delete in program
 on: Feb 3rd, 2026 at 2:57pm 
Thanks Ray,  I'll get it a try.

3  Lantica Discussions / Lantica Discussion / Re: Mass Delete in program
 on: Feb 3rd, 2026 at 2:51pm 
Hello,

The following lines of code select Mass Delete from the Menu Tree

Code
Select All
Var vI as Int

If @Update
{
	vI = @SelectTreeItem("Search Update Menu!Results Commands!Mass Delete")
}

 



So you can place this before your code to do the Import.

Note: It will only delete the record(s) you have retrieved! So if you only retrieve 1 record out of 500 in your database, only that 1 will be deleted.

-Ray

4  Lantica Discussions / Lantica Discussion / Mass Delete in program
 on: Feb 3rd, 2026 at 2:40pm 
I have a database at each location that contains sold items that are not delivered.  The same databases are at the central location with all items delivered and not delivered.

Currently, the central location exports the non-delivered items to a text file where it can be imported by the remote locations.

Each time, I have do a Mass Delete before importing the files.  How can I do this automatically.

Here is the current program to import the text file:

#include "sbasic_include.sbas"

var vRun as Int
var vSpec as String
var vFile as String
var vDel as Int

//WarningLevel(0)

//DeleteRecord()

//WarningLevel(1)


vSpec = "ImportCases"
vFile = "V:\CLOUD\BACKUP\REMOTESOLDSR.txt"
vRun = @LoadImportSpec("SOLDIMPORT")
If vRun = 1
{
If FileExists(vFile)
{
RunImportSpec(vFile)
}}






5  Lantica Discussions / Lantica Discussion / Re: Adding a picture file to reports
 on: Nov 19th, 2025 at 7:39pm 
Hi Renato,

I tried that but it didn't work.

If I resolve the issue, I'll let you know.


6  Lantica Discussions / Lantica Discussion / Re: Adding a picture file to reports
 on: Nov 19th, 2025 at 7:24pm 
Well, the only solution left on my menu is to press F5 on the browser to clear the cache!
Sorry I can't be of more help!

7  Lantica Discussions / Lantica Discussion / Re: Adding a picture file to reports
 on: Nov 19th, 2025 at 6:48pm 
I tried the C:\Sesame2\Pics.
This folder contains CompanyLogo.jpg (my header), but when the report still prints the Sample version of CompanyLogo.jpg .  I tried changing it to my original file name INVOICE-HEADER2.png, but nothing comes up.
Nothing worked using the Server address despite having the same folder.

The only thing I can figure is the report is actually looking for the images in a different folder.  I just don't know where.

8  Lantica Discussions / Lantica Discussion / Re: Adding a picture file to reports
 on: Nov 19th, 2025 at 5:14pm 
In S Designer, check the image path in the Application Property Manager.
For a local application, the correct path would be C:\Sesame2\Pics.
If the application is client/server, for example, \\172.18.5.15\Sesame2\Pics or \\hostname\Sesame2\Pics

9  Lantica Discussions / Lantica Discussion / Re: Adding a picture file to reports
 on: Nov 19th, 2025 at 4:41pm 
If you are running Client/Server, I assure you it's coming from the Server. That logo is not embedded in Sesame.

-Ray

10  Lantica Discussions / Lantica Discussion / Re: Adding a picture file to reports
 on: Nov 19th, 2025 at 4:06pm 
Hi Renato,

Tried that it still didn't work.
If I used a different name, nothing comes up.
If I used the same name, the sample image still comes up.

Hi Ray,
The PICS folder on both the workstation drive and the server drive have our header as CompanyLogo.jpg.
It must be coming from some other location.
I deleted it from the SesameReports, but the sample returns each time.

 
  Top