1. Shlomo Sarel
  2. PowerBuilder
  3. Sunday, 16 June 2024 15:18 PM UTC

Looking for a solution of printing from PowerBuilder set of documents one after one (syncronic) the documents are in filesystem library.

I have docs from varios types, (Ex. docx, jpeg and pdf). 

I succesfully print docx and jpeg via OLE to WORD, but cannot print pdfs. 

I try Acrobat pro, but it doesn`t have license for a server.

Any idea?

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Sunday, 16 June 2024 17:44 PM UTC
  2. PowerBuilder
  3. # 1

Hi Shlomo;

  I would suggest trying PB's built-in Web Browser control to both view & print the PDF.  HTH

Regards... Chris 

Comment
There are no comments made yet.
Shlomo Sarel Accepted Answer Pending Moderation
  1. Monday, 17 June 2024 12:24 PM UTC
  2. PowerBuilder
  3. # 2

Thanks, that works as well.

with 2 limitations

  1. The print function itself is asyncronic, so I get the control before the printer got the pdf, (that I can by pass with yield() or sleep()).
  2. Most important is that the print func open the printer`s window (to choose printer & properties) and I need to print a lot of file without user ineraction.

If you know how to get rid from the printer window, it will br helpfull.

Any case, thanks on the answer, I become aware to the web control object.

Best regard

Shlomo

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 17 June 2024 13:17 PM UTC
  2. PowerBuilder
  3. # 3

Hi.

On a server you can install Acrobat Reader. This is legal. Then you can control it using OLE...

Andreas.

Comment
There are no comments made yet.
Shlomo Sarel Accepted Answer Pending Moderation
  1. Monday, 17 June 2024 14:50 PM UTC
  2. PowerBuilder
  3. # 4

Hi Andreas

As far as I know and it was checked with acrobat (we offer to pay on licence), Acrobat Reader doesn't sopport OLE, only Acrobat Pro.

But Acronat Pro need a paid licence and doesn't have server one.

Best regard

Shlomo

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 18 June 2024 06:22 AM UTC
  2. PowerBuilder
  3. # 5

In my computer I have Acrobat Reader.

Don't have and don't use Adobe Acrobat Standard or Pro... But I can use Acrobat Reader (and I have done this many times) in Powerbuilder.

Andreas.

Comment
There are no comments made yet.
Shlomo Sarel Accepted Answer Pending Moderation
  1. Thursday, 20 June 2024 07:51 AM UTC
  2. PowerBuilder
  3. # 6

Hi all,

I Apologize, but I was in vacation the last two days, so I delay.

Can you send me an example, how to call Acrobat Reader in PB?

I try via OLE, and they (and Stackoverflow) said it is bot supported.

Thanks a lot

Shlomo

Comment
There are no comments made yet.
Shlomo Sarel Accepted Answer Pending Moderation
  1. Monday, 24 June 2024 13:01 PM UTC
  2. PowerBuilder
  3. # 7

Hi andress,

Can you send me an example, how to call Acrobat Reader in PB?

I try via OLE, and they (and Stackoverflow) said it is bot supported.

Thanks a lot

Shlomo

 
 
 
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.