I write a program, which must print data. My printer now is not working properly, but I should keep on working. So, to test my program I want to print to file, if it is possible.
Here is my code:
I thought that this line:
should name the file where I'm printing instead of the printer.
But after that "printing" I didn't find such a file on my hard drive.
returns valid CDC object and the ::StartDoc() returns positive number- so it must works. Any suggests?
And one more question: What is the format, in which the file is "printed" and how can I view it?