I am trying to print to a receipt printer. I am using the following code:
print.open("LPT1"); // open stream
print << "Text will print fine"
print << "\0x0c" //This will produce a form feed...and it also works. \f also produced a form feed......
//the problem is the next line where I try to use the esc command sequence to tell the receipt printer to cut the paper...
print << "\0x1B 0x50 0x01"; //I've tried this line a million different ways and I cannot get it to work.
For some reason it seems to ignore the escape sequence..In visual basic I can get the printer to cut when I use printer.NewPage .....How do I do this in Visual C++?
Does anyone know how to solve my problem? It would be greatly appreciated!!!!!