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

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
  1. Tracy Lamb
  2. Sunday, 9 January 2022 16:52 PM UTC
I'm looking into this also... I got the demo BlackIce RTK, but can't figure out where to start from the examples provided. I need to create pb pdf files and merge them with other pdf files. Do you have some sample code you could share?

~~~Tracy
  1. Helpful
  1. Chris Pollach @Appeon
  2. Sunday, 9 January 2022 17:59 PM UTC
I've never used Black ice so I can't help you in that area. Sorry
  1. Helpful
  1. Mark Goldsmith
  2. Monday, 10 January 2022 15:19 PM UTC
Hi Tracy...you may wish to have a look at this post for a couple of additional approaches in addition to Chris': https://community.appeon.com/index.php/qna/q-a/saving-multiple-datawindows-to-one-pdf-file

HTH...regards,

Mark
  1. Helpful
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

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
  1. Chris Stewart
  2. Tuesday, 8 September 2020 17:11 PM UTC
appreciate the response but I don't think fileopen works with pdf files and fileprint doesn't seem to exist.
  1. Helpful
  1. Olan Knight
  2. Friday, 11 September 2020 14:34 PM UTC
Oops, sorry! I misread the question!

  1. Helpful
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.