WPCubed Product Support

print failed when continuously printing document

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

#1 ♥ 0
6.9k Views 1 links 2 users read 2 min
support

Please try this:
WPRichText.PritnParameter.PritOption :=
WPRichText.PritnParameter.PritOption +
[ wpDoNotChangePrinterDefaults ];

#2 ♥ 0
support

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

#3 ♥ 0
support

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.

#4 ♥ 0
support

There is apparently a fix for the print problem available now:

#5 ♥ 0
This category is archived. No new posts are possible.