Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Odd behaviour in report...

Status
Not open for further replies.

GriffMG

Programmer
Mar 4, 2002
6,333
FR
I have a report with a simple group header, which prints a field from the database, and captions for the columns below with
a line over the columns that stretches the width of the page(ish).

Except that for the first group, it prints the line under the captions and the field - leaving the rest blank. The group headers
after that one print perfectly normally.

The fix: put a .t. in the print when expression.

Put it on one caption and it starts showing that one and the one beside it....

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Weird.

I'D check, if "remove line, if blank" or "print repeated values" is a reason. Though the last one would work inverted, print the first header caption and no further. Maybe your grouping also differs from what you think it should be, I remember some of the report variable calculations are done right before or right after a group change, that can also influence print behavior.

At least it's good to know print when expression is .t. is enforcing print, but it seems you're just overriding print suppression of some kind. It shouldn't be needed, as that is the default, if you don't set anything in there.

Bye, Olaf.
 
Hi Olaf,

'remove line' is not ticked in any case, and 'print repeated' is in every case. The grouping is very simple, just one field, no calculations of any sort
it's about as simple a report (with one level of grouping) as you could design...

The funny thing isn't that the 'print when' using a .t. is fixing it, it is that you set one caption that way and two magically appear.

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
>it is that you set one caption that way and two magically appear.

Yes, this is what's making this even weirder. That's like print, if something to the left side also prints, but only affecting the next neighbor. Are the captions at the exact same height position? Have you looked into the report as a table?

Bye, Olaf.
 
They aren't even adjacent, they are at the same vertical position - and it only affects the first header.

No, I've not looked at the .frx as a table yet - having found a 'fix' that enabled me to provide a deliverable.

Reports are sometimes a bit odd, they aren't always 'logical'

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Just out of curiosity, which report engine is this? VFP9 has two of them.

With the old engine (REPORTBEHAVIOR 80) I've seen all sorts of weirdness with lines that encroach on the page margins, even by a pixel.
 
That's a good question.

It is VFP 9, but it is to use 80 behaviour

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top