Out of control when printing out the report designer

Hi

I put the PO No.: || df_indent || on the report designer.

In 'Print When' properties, I click on the 'Remove line if blank' checkbox and write thefollowing code as below.

(.not. empty(df_indent) and (_pageno>1)) or (.not. empty(df_indent) and (_pageno=1))

Example of the output result when printing.On 1st page of the report designer

PO No.: Testing ABC

On 2nd page of the report designer

Testing ABC

I want to make the PO No.: appear on the 2nd page too. Is there anything mistake on my code?

Sometimes, there is no input on the form that is linked to the report designer when printing out. For e.g, I do not type out the 'Testing ABC' beside PO No.: on the form and thus it will not be displayed and just leave blank on both page 1 and 2.

[1208 byte] By [MillBear] at [2007-12-24]
# 1

Millbear,

Probably you need to rephrase your question. It's not clear what you're asking (maybe someone else would understand). ie: What is df_indent, a memory variable or a field - I assume a field since it does not have an m. prefix? How do you put PO No: || df_indent__ || on the report designer? Is that a label as you typed? Where do you put print when code (label, field or both?) etc.

PS: Your "print when" code is effectively same as: !empty(df_indent)

CetinBasoz at 2007-8-31 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 2

CetinBasoz

Sorry for not explaining clearly.

df_indent is a field.

PO No: is a label.

In the report designer, I design PO No:df_indent.

I put the code on the label of PO No: in the Print When properties.

When printing more than 2 pages, the label ‘PO No:’ is printed on 1st page but not printed on 2nd page since the df_indent is not empty. ( the example of the output result when printing.) I think that the problem lies with _pageno>1.

MillBear at 2007-8-31 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 3
It always prints when df_indent not empty ( your code in practice just saying "not empty(df_indent)" ). Your problem should be something else you're overlooking (print repeated values?).
CetinBasoz at 2007-8-31 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...
# 4

You are right that I overlook the 'print repeated values' in the properties and select 'Yes' instead of 'No'. Also I removed the _pageno. All the data will shown on 1st page only so that it will not repeat if more than 2 pages.

Thank you for pointing out.

MillBear at 2007-8-31 > top of Msdn Tech,Visual FoxPro,Visual FoxPro General...