1. Moshe Tangi
  2. PowerBuilder
  3. Monday, 2 December 2019 15:40 PM UTC

Hi all ,

 

I want to print a dw but  - with out the header repeat itself in each page .

I went on the idea of getting the pagecount() of the dw , and maybe try  to minimize header.height by Describe

in run time just for the next pages ( I want the header for the first page only )

I didn't find any way to find out how many pages there are after  dw retrieved and nothing works.

 

It can be done ? Any ideas ?

 

Thanks

 

mike S Accepted Answer Pending Moderation
  1. Monday, 2 December 2019 15:44 PM UTC
  2. PowerBuilder
  3. # 1

use autosize height for the header to only show it on the first page.  you will have to code the header stuff to only have values if it is the first page.

Comment
  1. Moshe Tangi
  2. Monday, 2 December 2019 16:36 PM UTC
Hi Mike

Thanks for your response

I put not visible in the header stuff if the page > 1 and checked the autosize height for the header , still , the header does not scaled for the next pages …. have code example ?

thanks

  1. Helpful
  1. mike S
  2. Monday, 2 December 2019 17:48 PM UTC
did you resize the header to 0? autosize does NOT shrink the header, it expands it. so if you have any height at all, then that is the minimum height.
  1. Helpful
  1. Moshe Tangi
  2. Tuesday, 3 December 2019 08:21 AM UTC
yes , I did .

I have some nested dw in the header .. so , all I can do is to put an expression in the visible property:

if(page() > 1 ,0,1) .. nut it does not work well
  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.