IdeasVacuum wrote:You would expect it to be a problem (by the way, your procedure does call StopPrinting())
If the app is only for Windows, a wealth of information can be collected from the printer via the API.
Hi IdeasVacuum. StopPrinting is not called because the procedure exits before reaching it. And the routine still works if StopPrinting is remmed out.
API works but not so accurately with vector output. This is a normal A4 paper:
Code: Select all
GetDeviceCaps_(pdc, #HORZRES) = 4760
GetDeviceCaps_(pdc, #VERTRES) = 6814
PrinterPageWidth() = 4760
PrinterPageHeight() = 6814
VectorOutputWidth() = 4771
VectorOutputHeight() = 6803
I am only able to get the vector width and height of the printer after calling StartPrinting.
What is the problem you said you expect if StopPrinting is not called?