Hi,
I've build a small application(Console Application) that build a report and save it to a textfile and at the end, I want to automaticly print that file. SO I tried System("print C:\report.txt" and I got the dos prompt saying "C:\report.txt is currently being printed" but it never print. I guess the problem is not C++ but the print command because I tried it directly in Dos and it doesn't work either. So I was wondering if anyone know why it doesn't work and/or another way to print document in a console application.
thx.
jul ^_^
"Computer Science is no more about computers than astronomy is about telescopes"
E. W. Dijkstra.
I've build a small application(Console Application) that build a report and save it to a textfile and at the end, I want to automaticly print that file. SO I tried System("print C:\report.txt" and I got the dos prompt saying "C:\report.txt is currently being printed" but it never print. I guess the problem is not C++ but the print command because I tried it directly in Dos and it doesn't work either. So I was wondering if anyone know why it doesn't work and/or another way to print document in a console application.
thx.
jul ^_^
"Computer Science is no more about computers than astronomy is about telescopes"
E. W. Dijkstra.