there is a new problem when user continuously print the document, the first time, it works OK, but the second time, the third time prints nothing. I think this problem is affected by recent MS windows update. the same problem can appear in Wptools 7 demo, when you click print button a lot times ,the dialogs says "Der Drucker druckt aktuell nicht."
ps : OS is windows 8.1 x64
print failed when continuously printing document
Please try this:
WPRichText.PritnParameter.PritOption :=
WPRichText.PritnParameter.PritOption +
[ wpDoNotChangePrinterDefaults ];
I now got it too. It happnes with Acrobat Destiller, but not with cutePDF and not with Epson driver.
It is not caused by any wptools code, please see my post and example code here:
[](http://wptools.com/forum/viewtopic.php?f=19&p=20718&sid=295afc491a3533188dd505832f3a737a#p20718)
When printing from WPTools you can use this workaround as a quick fix:
var Device, Driver, Port: array[0..1023] of char;
hDevMode : HGLOBAL;
begin
Printer.GetPrinter(Device, Driver, Port, hDevMode);
Printer.SetPrinter(Device, Driver, Port, hDevMode);
WPRichText1.Print;
end;
In my tests this solves the problem. BTW: The PrintDialog is not affected by this problem.
Julian
To fix this error in the WPTools code please locate
Printer.EndDoc;
and insert the line
Printer.Copies = Printer.Copies
after it. This resets the printer object.