1. Bjarne Anker
  2. PowerBuilder
  3. Tuesday, 27 October 2020 17:52 PM UTC

Hi.

 

In PB2019R2:

 

We experience a weird situation when saving a datawindow to PDF using the Native method.

The summary band autosizes, even if the checkmark is off and the height is set to 0.

We have even extracted the datawindow syntax using the dw_data.describe() statement, and the datawindow renders with the summary band collapsed when we paste the syntax into a new datawindow using "Edit source".

The summary band stays collapsed if we use another PDF "printer", like CutePDF or AmyUni.

 

Have anyone experienced this before?

And is there something we can do to find the reason why this happens?

 

I've been using PB for 15 years and have never seen this before.

 

Regards,

 

Bjarne

Maritech

Norway

Accepted Answer
Tobias Roth Accepted Answer Pending Moderation
  1. Wednesday, 28 October 2020 22:02 PM UTC
  2. PowerBuilder
  3. # Permalink

Hi Bjarne,

I had a similar problem and reported it to appeon : https://www.appeon.com/standardsupport/track/view?id=5093

Regards 

Tobi

Comment
  1. Bjarne Anker
  2. Thursday, 29 October 2020 07:58 AM UTC
Looks like it's been classified as a bug :)

I guess it will be OK in R3.



Thanks.
  1. Helpful
  1. Tobias Roth
  2. Thursday, 29 October 2020 08:41 AM UTC
At the moment the status is "Scheduling".

So it looks like it will not be included in R3.
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Thursday, 29 October 2020 21:07 PM UTC
Tobias is correct that "scheduling" would imply it would be in a future version not 2019 R3. Please implement the workaround temporarily.
  1. Helpful
There are no comments made yet.
John Fauss Accepted Answer Pending Moderation
  1. Tuesday, 27 October 2020 18:09 PM UTC
  2. PowerBuilder
  3. # 1

Greetings, Bjarne -

May I assume the summary band contains one or more DWObjects? If so, what is their Visible property value? If they are visible, but hidden by having the summary band height set to zero, can you try making them invisible? Can you try (only as a test) removing all DWObjects from the summary band to see if that affects the behavior?

Have you tried setting the summary band height to a very small, non-zero value (like 4 PBU's)?

Can you zip the exported DW source and post it so that we can examine it to look for clues?

Regards, John

Comment
  1. Bjarne Anker
  2. Wednesday, 28 October 2020 10:22 AM UTC
The objects are set to visible,.

The summary band stays collapsed if we remove all the DWObjects in the summary band or set them to visible = false.

If not, the height of the band and/or autosize is not taken into consideration.

This might be a bug?

  1. Helpful
  1. John Fauss
  2. Wednesday, 28 October 2020 13:26 PM UTC
That satisfies MY definition of a bug ... I can't speak for Appeon, however. I'd report it, particularly since you have a reproducible test case.

At least you have a work-around!
  1. Helpful
There are no comments made yet.
Bjarne Anker Accepted Answer Pending Moderation
  1. Tuesday, 27 October 2020 18:24 PM UTC
  2. PowerBuilder
  3. # 2

I will have the developer look into these suggestions tomorrow morning.

I have attached the dw syntax under here.

 

br,

 

Bjarne

Attachments (1)
Comment
There are no comments made yet.
Daniel Johnson Accepted Answer Pending Moderation
  1. Friday, 4 December 2020 21:37 PM UTC
  2. PowerBuilder
  3. # 3

Please don't fix this bug!

It's the only way we have of getting the summary band to properly auto resize with a auto-resize nested report inside. No, it doesn't display correctly in a native app, but saved to PDF it renders correctly!

:)


Comment
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.