Chris Hettinger
February 29th, 2000, 12:49 PM
I am working with a non-full-duplex printer (ie - I can only print on one side), and need to print a two-sided paper report. I am not using the doc/view architecture, because I am printing from a dialog app.
In pseudocode, I have:
StartDoc
repeat
startpage
do stuff
end page
end repeat
AfxMessageBox("Flip pages");
repeat
startpage
do stuff
end page
end repeat
EndDoc
the problem is that when I do this, the last page of the first set does not get sent to the printer before the afxmessagebox freezes everything. therefore, when I hit ok, all front pages are off by one.
I really dont want to do two seperate Start/EndDoc calls because someone can jump into the queue in between and screw things up.
Does anyone have a solution to this problem they're willing to share?
Something which would also be acceptable (but I dont know if it can be done) - is to print the odd sides, then issue a command which takes the printer offline. then the user could flip pages and put it back online to continue.
Any ideas? Please help... :)
Chris Hettinger
In pseudocode, I have:
StartDoc
repeat
startpage
do stuff
end page
end repeat
AfxMessageBox("Flip pages");
repeat
startpage
do stuff
end page
end repeat
EndDoc
the problem is that when I do this, the last page of the first set does not get sent to the printer before the afxmessagebox freezes everything. therefore, when I hit ok, all front pages are off by one.
I really dont want to do two seperate Start/EndDoc calls because someone can jump into the queue in between and screw things up.
Does anyone have a solution to this problem they're willing to share?
Something which would also be acceptable (but I dont know if it can be done) - is to print the odd sides, then issue a command which takes the printer offline. then the user could flip pages and put it back online to continue.
Any ideas? Please help... :)
Chris Hettinger