Paxar Gold 6037EX Programmer's Manual page 67

Paxar printer programmer's manual
Table of Contents

Advertisement

Example
#include <conio.h>
#include <stdio.h>
#include <string.h>
#include "mmsultra.h"
void main(void)
{
PRINTINIT pConfig;
short sStatus = 0;
char cFormat[100];
sStatus = pclInit(NULL);
if (sStatus != 0)
printf("Init Failed\nError: %d", sStatus);
else
{
if (!pclBatteryOkToPrint())
printf("Battery too low");
else
{
strcpy(cFormat, "{F,1,A,R,E,400,200,\"1C39\"|");
strcat(cFormat, "B,1,12,F,320,29,4,12,20,8,L,0|");
strcat(cFormat, "R,1,\"666666666666");
strcat(cFormat, "\"|}");
sStatus = pclWrite(cFormat, strlen(cFormat));
// Print data structure
// Command calls status
// Format to print
// Start Print subsystem
// Check battery
// Write format
Function Reference 4-31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Monarch pathfinder ultra gold 6037ex

Table of Contents