| Started by Renato Piacenti | Post by Renato Piacenti |
|
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? 
|
| Started by cbislander | Post by cbislander |
|
|
Thanks Ray, I'll get it a try.
|
| Started by cbislander | Post by Ray the Reaper |
|
Hello, The following lines of code select Mass Delete from the Menu Tree 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
|
| Started by cbislander | Post by cbislander |
|
|
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) }}
|
| Started by cbislander | Post by cbislander |
|
|
Hi Renato,
I tried that but it didn't work.
If I resolve the issue, I'll let you know.
|
| Started by cbislander | Post by Renato Piacenti |
|
|
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!
|
| Started by cbislander | Post by cbislander |
|
|
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.
|
| Started by cbislander | Post by Renato Piacenti |
|
|
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
|
| Started by cbislander | Post by Ray the Reaper |
|
|
If you are running Client/Server, I assure you it's coming from the Server. That logo is not embedded in Sesame.
-Ray
|
| Started by cbislander | Post by cbislander |
|
|
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.
|