I am working on a print feature for a simple text program. The print algorithm should print data seen on a CEditView. The data is saved in a CString object.
I implemented the exact same printing algorithm Jeff Prosise shows in his book. However, I encounted two problems.
First, the program crashes under debug mode. The error is this line in viewedit.h.
ASSERT (nPageSize > 1);
Secondly, although the print algorithm does not crash under release mode, the program does not print. The program does send data to the print because the queue system that runs the print list the size of the data sent and the size is valid. However, the printer printed blanks.
Again, I implemented the exact same algorithm Prosise shows. Does anyone know if there are bugs in that printing algorithm?
Last, please post if you have any idea what the bugs mentioned above.