what is the command for printing using printer in c programming??
I'm using borland turbo c++ .
pls list out the complete command for the printing!
thank you!!!
And
is there any other to generate index no or id by the computer itself???
what is the command for printing using printer in c programming??
I'm using borland turbo c++ .
pls list out the complete command for the printing!
thank you!!!
And
is there any other to generate index no or id by the computer itself???
You could always try a search
I tried to search before but none or them match my criteria.
I want the command to print the file record using printer(hardcopy)
Code:#include <stdio.h> #define MY_PRINTER_PORT "LPT1" //port for your printer int main (void){ char buff[] = "Hello World\n";//catchy text FILE *f = fopen(MY_PRINTER_PORT,"w");//open printer as file if(!f){ printf("Could not open printer for writing"); return 1; } fprintf(f,buff);//write text fprintf(f,"%c",(char)12);//write linefeed command fclose(f);//close printer return 0; }
>I tried to search before but none or them match my criteria.
I find that hard to believe, I myself have answered this question (exactly as you asked it) with source code for several methods at least twenty times since I first joined Cprogramming.
-Prelude
My best code is written with the delete key.