1. O E
  2. PowerBuilder
  3. Monday, 18 December 2017 15:51 PM UTC

Is there a way to set the Band.Height dynamically.

This is the problem/reason why I am asking this is the following:

We got an invoice formular/print. The headinformation (order#, invoice#, customer, adress, ...)should only be printed at page one, at page 2 the headinformation should be much smaller. The total price should be at the last side, only.

I tried several solution approaches with groupings, autosize height, visibility by page, y-positon by page,...

 

Regards

Oliver

 

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 18 December 2017 17:57 PM UTC
  2. PowerBuilder
  3. # Permalink

 

Hi;

      FWIW: Sounds like a job for two nested DataWindows. You could do it via various DW.Modify() commands and/or DW expressions but that could be a bit messy code wise to build & support. Just my $0.02.

Food for thought.

Regards .. Chris

Comment
There are no comments made yet.
Lars Mosegaard Accepted Answer Pending Moderation
  1. Tuesday, 19 December 2017 22:49 PM UTC
  2. PowerBuilder
  3. # 1

visible attribute of all objects in header band should be conditional: if ( page()=1, 1, 0 )

make the header band autoheight and collapse it to zero height.

Comment
  1. Lars Mosegaard
  2. Tuesday, 19 December 2017 22:51 PM UTC
For the smaller page 2 items do the reverse.  if ( page()>1 ,1 , 0 )

  1. Helpful
  1. Helmut Katherl
  2. Wednesday, 23 May 2018 08:23 AM UTC
Hi together!

I have tried this, we need this function on a DW for an invoice.

Should this technic really work?

  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.