1. Avory Rose Pastoral
  2. PowerBuilder
  3. Tuesday, 28 November 2023 08:12 AM UTC

Hi Everyone,

 

 

Good day! I'm using powerbuilder 12.5 classic and just wondering if it's possible to send a file to printer. I have a process that prints the file to PDF and I want it to send to printer to print. Any ideas would be much appreciated. Thank you in advance. 

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 28 November 2023 19:49 PM UTC
  2. PowerBuilder
  3. # 1

Hi Avory;

  FWIW: I used to just call the DOS "Copy" command from my PB App way back when for this.

For example ... RUN ( "COPY /B  File.pdf \\PrintServerComputername\PrinterShareName" )

HTH

Regards ... Chris

PS: note that you can do this natively now in PB 2022 R2 using the built-in Web Browser control's Print() or PrintAsPDF() command.

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 28 November 2023 10:04 AM UTC
  2. PowerBuilder
  3. # 2

Hi.

How do you render the pdf? Are you using some specific tool? The pc that should perform the printing does have acrobat reader installed?

Andreas.

Comment
  1. Avory Rose Pastoral
  2. Thursday, 30 November 2023 09:00 AM UTC
Hi I posted my script in a separate thread. Here it is



https://community.appeon.com/index.php/qna/q-a/how-to-avoid-saveas-dialog-in-print
  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.