1. Roland Smith
  2. PowerBuilder
  3. Thursday, 18 March 2021 18:13 PM UTC

I know how to print multiple DataWindows in one print job:

Long ll_Job

ll_Job = PrintOpen("Transcript Report")
If ll_Job > 0 Then
    PrintDataWindow(ll_Job, dw_1)
    PrintDataWindow(ll_Job, dw_2)
    MessageBox("Print", "PrintOpen Failed!", StopSign!)
End If

I also want to be able to save multiple DataWindows to one PDF file.

I was able to work out the following:

Print the DataWindows to postscript files.

Run the Ghostscript program with the right parameters to create a PDF file from the multiple .ps files.


I am wondering if anyone has had success doing this with NativePDF or some other method.

Mark Goldsmith Accepted Answer Pending Moderation
  1. Thursday, 18 March 2021 19:16 PM UTC
  2. PowerBuilder
  3. # 1

Hi Roland...I think this was requested back in 2018 or 2019 as a PDF enhancement, maybe by Chris, but still hasn't been provided and so I'm still using PDFCreator with code that looks something like this:

dw_age_1.SaveAs("D:\cps\age.pdf", PDF!, True)
dw_specialties.SaveAs("D:\cps\specialties.pdf", PDF!, True)

Run('D:\Program Files\PDFCreator\PDFCreator.exe /merge "D:\cps\age.pdf" "D:\cps\specialties.pdf" /OutputFile="D:\cps\Age_and_Specialties.pdf"')



  1. Chris Pollach @Appeon
  2. Thursday, 5 May 2022 13:51 PM UTC
Hi Everyone ... just a clarification to Armeen's post. Appeon Engineering is looking at the PDF merge feature for PB2022 but there is no release date yet for that feature. That probably means that it will not be there for the GA release but could appear either in Revision #2 or Revision #3 of PB2022. Please see ticket #8329 for more details.
  1. Helpful
  1. Mark Goldsmith
  2. Thursday, 5 May 2022 14:22 PM UTC
Thanks for the update Chris. Ticket #8329, assuming that's a bug ticket number, is it marked as private? I can't find it.
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 5 May 2022 17:39 PM UTC
Hi Mark .. yes unfortunately, the creator opened this ticket in "private" mode.
  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.