1. John Michael
  2. PowerBuilder
  3. Tuesday, 16 February 2021 01:23 AM UTC

I want to display the company logo and the report title only in the first page,

So far in searching the web I found and tested the following

-- In the Print Page event datawindow

A.)

IF Pagenumber > 1 THEN
dw_report.object.p_header.Visible=false
dw_report.object.r_title.Visible = false
END IF

It works only in the first page but in the succeeding pages, it will leave a blank space since the objects are only hidden.

B.)

IF Pagenumber > 1 THEN
dw_report.object.p_header.Visible=false
dw_report.object.r_title.Visible = false
dw_report.object.datawindow.header.height = 100
END IF

Hide the objects but some of the details in the succeeding pages are not displayed.

 

Any suggestions please?

 

Accepted Answer
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 16 February 2021 01:50 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi John;

   I would do all the changes in the DW object itself. Use the Page() method as an "expression" on the visible property of the object that you wish to hide. The next consideration would be the position of the Header Band based on the desired amount of space that you wish to expose. Use the same expression approach.

  I would use a second control like a DataStore to house the printable DWO. Then just copy / share the visible DW buffers between the DS's DWO when printing.

Food for thought.

Regards ... Chris

Comment
  1. John Michael
  2. Friday, 19 February 2021 01:44 AM UTC
Thanks Chris!
  1. Helpful
There are no comments made yet.
Alain NYSSEN Accepted Answer Pending Moderation
  1. Friday, 5 January 2024 15:23 PM UTC
  2. PowerBuilder
  3. # 1

Or create a "Header Group" as first header group which include your logo and title

And on this header Band check the property "Suppress Group Header" to TRUE

 

Regards ... Alain

 

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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.