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
-
-
- Offizieller Beitrag
Please try this:
WPRichText.PritnParameter.PritOption :=
WPRichText.PritnParameter.PritOption +
[ wpDoNotChangePrinterDefaults ]; -
- Offizieller Beitrag
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/viewtopi…2f3a737a#p20718When printing from WPTools you can use this workaround as a quick fix:
Codevar 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
-
- Offizieller Beitrag
To fix this error in the WPTools code please locate
Printer.EndDoc;
and insert the line
Printer.Copies = Printer.Copiesafter it. This resets the printer object.
-
- Offizieller Beitrag
There is apparently a fix for the print problem available now: