I am trying to send the contents of a widow to a printer, however, I can only get 1 page to print. There should be several pages. I am using this
StartPage(hdcPrinter);
byteswritten=DrawTextEx(hdcPrinter, pszWindowText, -1, &rect,
DT_NOPREFIX |
DT_WORDBREAK |
DT_NOCLIP |
DT_TOP |
DT_LEFT |
DT_EXPANDTABS, &dtp);
EndPage(hdcPrinter);
EndDoc(hdcPrinter);
Is this the correct way? It works for one page. byteswritten is returned with half of the characters in the window.