I have written a simple console application in Visual C++ v6 that generates an invoice, the invoice has to go to screen, append to log file, and out to printer as well. I have the out to screen using a "cout" in a loop, similarly, appending the log is done like this:
outfp << "OUTPUT TEXT";
I want an output to the default printer in a similar way, it needs to be SIMPLE as i'm a TOTAL BEGINNER in C++. I think the problem lies in discovering the default printer, it may be a network printer for example, or USB etc. I've read there is a method using "Document.PrintOut" that will allow to print a text file, but can't find how. The SIMPLEST WORKING SOLUTION is what i'm after!
Thanks all, in advance