Home > database >  How to dynamically modify the height of the header in the dw to keep only the first page
How to dynamically modify the height of the header in the dw to keep only the first page

Time:09-22

Is the first page of the header reserved
The second page started the header content don't print

CodePudding user response:

Described in the object in the header area of the visible attribute expressions: the if (page ()=1, 1, 0)

CodePudding user response:

reference 1st floor response:
visible attributes of objects in the header area in writing expressions: the if (page ()=1, 1, 0)



Well I have a question express
This content is not printed set or can empty out a large piece of
My question is to skip this one and then play back so think to adjust the height of the header

I use a code change, you can get rid of all the height value is more than the first page

CodePudding user response:

Directly modifying the height of the header, is to get rid of all the pages,

But can write code to print the first page, and then modify the header height, print subsequent page again,,,

CodePudding user response:

reference 3 floor response:
directly modify the header height, is to get rid of all the pages,

But can write code to print the first page, and then modify the height of the header, and then print the page,,,

Print the first page and then to change height less then print the middle piece of content
Is to adjust the height of 0 after later ran the first page...
Good entanglements ah

CodePudding user response:

And you the same thing I did, my way is:

The first datawindow, calculation of the first page of the last line is which line, it can use the last (getrow () for page),

Then another datawindow, remove the first few lines, is to use dw_2. Deleterow (r) or rowsmove, is in this dw_2 head height of 0,

Both datawindow ready, if don't need to print the page number, you can print in turn,

If need to print similar to "the first m total n pages", still must modify related calculation domain in the two dw formula: the first page number formula of dw inside to write 'page page 1, a total of n, n is calculated from the dw_2 pages + 1, after the second page number formula of dw inside to write' first '+ (page () + 1) +' pages' + ', '+ (pagecount ()) + 1' pages',

CodePudding user response:

To add that the dw_1. Object. The datawindow. Print. Perview='yes' must be set up first, or calculate the last line of the first page is shown on the screen height is calculated pages long,

CodePudding user response:

In the group can

To suppress hook group header

CodePudding user response:

The
reference 5 floor response:
and you the same thing I did, my way is:

The first datawindow, calculation of the first page of the last line is which line, it can use the last (getrow () for page),

Then another datawindow, remove the first few lines, is to use dw_2. Deleterow (r) or rowsmove, is in this dw_2 head height of 0,

Both datawindow ready, if don't need to print the page number, you can, in turn, play...


Well I was under a dw do print dw1 before head0 filling a few lines of space
Two words of dw are using composite dw to print?

CodePudding user response:

The
reference 7 floor response:
in the group can

To suppress hook group header



Uh, suppress group header PB9 I don't think so

CodePudding user response:

This is have another idea to finished according to the detail of each page don't make headlines
  • Related