Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
The following code works but, to my dismay, the 1st fprintf command prints to a thermal transfer printer label and then form feeds before the barcode (from the 2nd fprintf command) prints. How can I print both the text and barcode to the same label?
/* DMX SERIES C program */
# include
main ()
{
FILE *fp = fopen("LPT1", "w");char *pcs = "123456";
char *desc = "123456";
fputs ("\x02L\n", fp); /* STX L - Enter Label Formatting */
fputs ("H07\n", fp); /* Enter Heat Setting of 7 */
fputs ("D95\n", fp); /* Set Width and Height Dot Size */
fprintf (fp,"191108010000025%s\n",desc); /* Select smooth Font */
fprintf (fp, "2A6220005750050%s\n", pcs); /* Select Barcode type ‘a’ */
fputs("E\n",fp); /* End Label format mode and print */
fclose(fp);
}

![]() |
Declairation Of Socket In...
|
about Interrupt
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |