OK let me try that !
Type: Posts; User: 3DMatrix
OK let me try that !
#include<iostream.h>
#include<fstream.h>
#define ESC "\033"
int main()
{
ofstream outfile;
outfile.open("PRN");
outfile( ESC "4" );
outfile( "SAMPLE TEXT" );
outfile( ESC "5" );
Thanx for the codes I would try them & return if needed. But do these esp codes work on all Dot Matrix Printers ?
What does the #define ESC "\033" Stands for ?
Yes sure I can send text to the printer (using the outfile command). But I wish to format it at some places, like making some text Bold and some Extended etc. Do we have any commands like we had in...
My programe runs in the DOS console. I wish to send command to DotMatrix Printer to print Bold or extended type by using the outfile command. How can that be done ?