Printer driver question (repost)
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi Does anyone know how to print from a VC++ program into a file (not to printer) without the user being required to enter the name of the file at print time Thanks a lot :mad::mad: xxx
If you goto the code in ViewPrnt.cpp lines 131 onwards, you can get a copy of the default MFC OnFilePrint() function. Copy this and paste it into your overriden OnFilePrint() function of your view class. You can then mode the code so that it prints directly to a file and deosn't request a filename from the user. Roger Allen Sonork 100.10016 I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.