1. Chris Stewart
  2. PowerBuilder
  3. Monday, 7 September 2020 16:55 PM UTC

I have the need to print existing pdf files on the network to a HP printer and control which pages print within my PB app.  Anyone done something like that or any ideas where to look?  

 

Thanks

Chris Stewart Accepted Answer Pending Moderation
  1. Thursday, 10 September 2020 01:37 AM UTC
  2. PowerBuilder
  3. # 1
0
Votes
Undo

Chris, thanks for the link, I had found this as well.  I actually fixed all my issues by purchased the Black Ice PDF driver.  Allowed me to only print the 1st page to pdf and merged all the print into a single pdf.  

Comment
Hi Chris;

FWIW: I have created various PDF files before from PB and non-PB apps and then the used this free batch utility to stitch them together by calling this EXE from PB ... https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit

Regards ... Chris

  1. Chris Pollach @Appeon
  2. Thursday, 10 September 2020 17:57 PM UTC
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 8 September 2020 18:32 PM UTC
  2. PowerBuilder
  3. # 2
Comment
There are no comments made yet.
Olan Knight Accepted Answer Pending Moderation
  1. Monday, 7 September 2020 20:41 PM UTC
  2. PowerBuilder
  3. # 3
0
Votes
Undo

Get the list of printers with PirtGetPrinter(), loop through them until you find the rinter you want.

Set the printer with PrintSetPrinter().

FileOpen() to start the printing.
FilePrint () to print the file.
FileCLose() to stop the printing.


As for page manipulation, I've no idea.


Good Luck -

Olan

 

Comment
appreciate the response but I don't think fileopen works with pdf files and fileprint doesn't seem to exist.
  1. Chris Stewart
  2. Tuesday, 8 September 2020 17:11 PM UTC
Oops, sorry! I misread the question!

  1. Olan Knight
  2. Friday, 11 September 2020 14:34 PM UTC
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.