Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 1 Jahr, 3 Monaten
Letzter Beitrag:
vor 1 Jahr, 3 Monaten
Beteiligte Autoren:
Aad Gouka, Binod Lohani, Ola, Al

WD17 - Make particular lines in a report invisible.

Startbeitrag von Aad Gouka am 24.08.2016 10:45

Hi all,

I have a simple report with 3 columns, let's say NAME, DEBIT, CREDIT, TOTAL.
TOTAL=DEBIT-CREDIT and is calculated in every line of the report.
When TOTAL = 0 I don't want to print this line.

Any ideas how to achieve this ?

Best regards,

Aad Gouka

Antworten:

Hi Aad,

Try using code like this in the "Before printing body" code section:

IF Total = 0 THEN
HReadNext(filename)
END

Best regards
Ola

von Ola - am 24.08.2016 12:30
Hi Aad

I think that should be
IF Total = 0 THEN
Total..visible = false
ELSE
Total..visible = true
END

Regards
Al

von Al - am 24.08.2016 18:42
Hi Ola and Al,

Thank you for your suggestions.

@Ola. I tried what you suggested in several ways, but it doesn't work.
@Al. I want to make to complete line invisible.

I played around a bit with RESULT true and RESULT false. This seems to only way
to filter a BODY line.

Variables from the report loose there value in the code segment Filter(proces record). Database fields keep there value. So to filter a BODY line out of the report, someone can't use a variable that is valued within the report.

I hope you understand what I mean.

Best regards,

Aad

von Aad Gouka - am 25.08.2016 08:39
Hello !!
What is the source of your Report ??
IS it table or something else like query ...

Further what about filtering the source of your report using the condition where debit credit ??
Thanks

von Binod Lohani - am 30.08.2016 00:06
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.