1. O E
  2. PowerBuilder
  3. Monday, 18 December 2017

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 Accepted Answer Pending Moderation
0
Votes
Undo

 

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.
  1. Monday, 18 December 2017
  2. PowerBuilder
  3. # Permalink
Lars Mosegaard Accepted Answer Pending Moderation
0
Votes
Undo

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
For the smaller page 2 items do the reverse.  if ( page()>1 ,1 , 0 )

  1. Lars Mosegaard
  2. Tuesday, 19 December 2017
Hi together!

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

Should this technic really work?

  1. Helmut Katherl
  2. Wednesday, 23 May 2018
There are no comments made yet.
  1. Tuesday, 19 December 2017
  2. PowerBuilder
  3. # 1
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.