1. Markus Kreuzer
  2. PowerBuilder
  3. Thursday, 17 October 2019 14:21 PM UTC

Hi everybody,

I'm manipulating and printing MS-Word-Documents via OLE-connection.

1. opening a document

2. replacing bookmarks

3. printing and closing the document

4. open the next document

...

 

The print statement is

       iole_word.activeDocument.printout (false)

The parameter "false" is for not printing in background. So, the PB-Code should wait until printing is done. But this doesn't work in some cases. As I found out, it depends on the choosen printer if it works or not.

 

In case that it is not working PB-code doesn't wait and goes on working on the next document, even if the current one is not yet printed. If using a PDF-printer I have to give a filename for saving. I get one SaveAs-Dialog after another. No chance to enter a filename until all documents are printed.

 

Does somebody has an idea why the parameter "false" in the printout-statement is not working in all cases?

Could that be a windows issue?

 

Markus Kreuzer Accepted Answer Pending Moderation
  1. Thursday, 17 October 2019 15:05 PM UTC
  2. PowerBuilder
  3. # 1

Hi David,

thank you for your quick reply.

 

I also thought about spooling and tried some settings. But this was not successful.

As you now also mentioned spooling I will have a close look at this.

 

Best Regards

Markus

Comment
  1. David Peace (Powersoft)
  2. Friday, 18 October 2019 09:35 AM UTC
I guess that question is what is different between a printer that works and one that does not?
  1. Helpful
There are no comments made yet.
David Peace (Powersoft) Accepted Answer Pending Moderation
  1. Thursday, 17 October 2019 14:50 PM UTC
  2. PowerBuilder
  3. # 2

Hi Markus

"it depends on the chosen printer if it works or not"

This makes me think that it is related to the printer driver or the print queue... could it be related to spooling on the print queue?

Otherwise not much idea really.

Cheers

David

 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.