The method of communications between your program and printer varies from platform to platform. Fortunately, many platforms allow you treat printer as a normal file. Your program retrieves a file handle by passing a special name to the file open routine. To send the PCL command, your program writes to the file handle. For example, the following C statement writes a PCL command to the printer:
fprintf(prn, "\x1B(s%dV", height);