I want to set a logo on printed paper in verifone vx520 should i change the <*PTRLGO> value? and how can i change the <*PTRLGO>? and how can i download this logo to the printer? how should i call the logo on program? I have written my program with c. here is my code but it's wrong. i used GP command to print a logo.
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <svc.h>
char myLOGO[]="testlogo.bmp";
char buf[200]="";
void main ()
{
int i,t;
char logo[]="*PTRLGO";
char buf[500] = "";
int prt_handle,prt_com;
prt_handle = open(DEV_CONSOLE, 0);
prt_com = open(DEV_COM4, 0);
put_env(logo,myLOGO,1);
sprintf(buf, "%cGP1;",27);
write(prt_com, buf, strlen(buf));
SVC_WAIT (100);
close(prt_com);
}
You shouldn't need to mess around with
*PTRLGO
. Instead, use the "Font Tool" to generate a logo file from a bitmap. Here's how:NOTE on #4: The 3740, 3750, 3730/510, 570 and 520 all use the 37xx print pak, as far as I'm aware.
Now you have the logo file downloaded to the TERMINAL'S memory, but the terminal's PRINTER has its own memory, and you have to load it there before you can tell the printer to actually print it. Here's some code that should work:
If you have done everything correctly, you should be able to print the logo out: