Consultor Eletrônico



Kbase P135342: Cannot send multiple background print jobs to MS Word
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   9/22/2008
Status: Unverified

SYMPTOM(s):

Cannot send multiple background print jobs to MS Word

Only the first document gets printed

FACT(s) (Environment):

Windows
Progress 9.x
OpenEdge 10.x

CAUSE:

Sending a Word document to print as a background process is an asynchronous request, multiple print jobs will fail after the first print if the previous request was not processed and completed first.

FIX:

In order to make multiple documents to wait in some sort of queue, you must do the following in your 4GL code:
place all the document filenames in an arrayInclude a FOR EACH statement that would process each filename in the arrayIn your FOR EACH, include a call to another procedure that will check the BackgroundPrintingStatus property continuously until the print job is completeOnce the print job is complete, the FOR EACH will resumeGo to solution P134249: How to batch print multiple MS Word documents in the background using 4GL for details on the 4GL code to write. The solution contains sample code and further explanations.