You don't understand. I don't believe Windows is able to cancel jobs coming from a phone. It would not make any sense.
What I see here is that when I print from any standard Android application, I can print several times over one page (not 25 pages) without error.
If I try to print one page several times over with the printing class, the second time over, and subsequent, the printer gets into error.
At that point, if I cancel all documents in the printer spooler in Windows, it seems to reset the printing system, and I can again print once one page from B4A with the printing class. PDF or bitmap.
I can only suppose Windows is sending some command that flushes the printer internal memory.
Once again, my concern is that I cannot release an app that prints only once. Quite rightly, buyers will object that Chrome, for instance, prints quite reliably.