1. Dipankar RSG
  2. PowerBuilder
  3. Wednesday, 1 May 2024 14:10 PM UTC

Hello,

We're trying to migrate our PB2021 App to PB2022. I'm noticing an issue while saving a Composite Report with multiple Nested DWs as a PDF. With PB2021, there was a line break coming after a DW with Grouped Rows with Summary while with PB 2022, line break is not coming. This is messing with the format of the report. 

Below is a partial screen shot of the report: 

Content starting with Proposal Conditions is on a separate DW. This always starts on a new page with PB2021, while with PB2022, it is in continuation. Strangely, viewing on screen is fine and coming with a line break with both PB2021 & PB2022.

Any help/ advice to keep PB2021 behavior would be highly appreciated.

 

Thanks & Regards,

Dipankar

John Fauss Accepted Answer Pending Moderation
  1. Wednesday, 1 May 2024 14:28 PM UTC
  2. PowerBuilder
  3. # 1

Hi, Dipankar -

You might want to try dynamically setting the newly-documented (formerly undocumented) PushCutControlToNextPage setting:

    https://docs.appeon.com/pb2022r3/datawindow_reference/PushCutControlToNextPage.html

Maybe this will help.

Best regards, John

Comment
  1. Dipankar RSG
  2. Thursday, 2 May 2024 09:01 AM UTC
Hi John,



This doesn't help in this scenario.



Regards,

Dipankar



  1. Helpful
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Wednesday, 1 May 2024 18:23 PM UTC
  2. PowerBuilder
  3. # 2

Hi Dipankar;

  Are you using PB 2022 R3 latest build 3356?

Regards .. Chris

Comment
  1. Dipankar RSG
  2. Thursday, 2 May 2024 15:09 PM UTC
We programmatically set the Printer to PDFCreator/ AmyUni calling PrintSetPrinter. For export, we're using NativePDF Feature only. Below are the commands generating PDF for us:



adw.Object.DataWindow.Export.PDF.Method = NativePDF!

adw.Object.DataWindow.Export.PDF.NativePDF.UsePrintSpec = 'Yes'

adw.SaveAs( ls_path, PDF!, TRUE )
  1. Helpful
  1. Chris Pollach @Appeon
  2. Thursday, 2 May 2024 17:28 PM UTC
Hi Dipankar;

Interesting .. what happens if you do *not* use that PDFCreator / AmyUni printer default vs pointing to a real printer?

Regards .. Chris

  1. Helpful
  1. Dipankar RSG
  2. Friday, 3 May 2024 12:29 PM UTC
I tried skipping the logic setting the printer. But still, it creates the PDF in the same way.
  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.