optional lines in report

Stimulsoft Reports.NET discussion
Post Reply
Valtécio
Posts: 37
Joined: Wed Oct 24, 2012 4:26 pm

optional lines in report

Post by Valtécio »

Hi. I'd like some help, plz.

There a report that print a detail with optional lines. Only the first line is not optional.(DataBand1) There 5 groups to print.

A report's piece :
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
NUMBER DATE VALUE <-Group Header>

11683221 07/12/2011 NAME: 00001-Angela Queiroz
ACOUNT: 1011-41 FAVORECIDO: CACIQUE TRANSPORTES LTDA. 78.143,16
DATE LOC: 28/12/2011
BAR CODE: 04574895465545458875466878962214122523012
11683222 07/12/2011 NAME: 00001-Angela Queiroz
ACOUNT: 1011-41 FAVORECIDO: CACIQUE TRANSPORTES LTDA. 78.143,16
first problem"***Stimul print this blank line but I need that the line below go to this line". i.e.There's no "DATE LOC" field with value to be printed
BAR CODE: 04574895465545458875466878962214122523012

second problem ***When the "FAVORECIDO" field is the same value, only the last line "BAR CODE" must be printed

Thx
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Re: optional lines in report

Post by Jan »

Hello Valtécio,

Sorry we have troubles with understanding your problems. Can you illustrate your problems with some of screenshots?

Thank you.
Valtécio
Posts: 37
Joined: Wed Oct 24, 2012 4:26 pm

Re: optional lines in report

Post by Valtécio »

Hi again

follow/pursue:

The original:
1- quebra com erro.jpg
1- quebra com erro.jpg (268.38 KiB) Viewed 3104 times
and

how I wish.
2- quebra sem erro - how must be.jpg
2- quebra sem erro - how must be.jpg (252.53 KiB) Viewed 3104 times
I tried place this label and field into a panel2 to "Dados:" field and "Código de barras:" field into panel3. These panels are into panel1 with dock style = top. I did guess that will works, but didn't


Thx for Help
Valtécio
Posts: 37
Joined: Wed Oct 24, 2012 4:26 pm

Re: optional lines in report

Post by Valtécio »

... I had try use Next() and Previous() functions but these don't retry recur the registry's actual value, didn't the expected value.
Valtécio
Posts: 37
Joined: Wed Oct 24, 2012 4:26 pm

Re: optional lines in report ((Almost there))

Post by Valtécio »

almost get it.

[Dados:] label and field are inside of panel2; (line 2)
[Código de barras] label and field into a panel3; (line 3)

Panel2 and Panel3 are inside of Panel1 and property [doc Style] = true
Can Grow = true
Can Shrink = true

The panel3 is inside DataBand1 but this band keep the same height, despite [Can Grow] and [Can Shrink] = true, so stil exist one or two blank lines

maybe I forgot/didn't discovered some property?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: optional lines in report

Post by HighAley »

Hello.

Did you try to use Conditions to disable some Data Bands?

Thank you.
Valtécio
Posts: 37
Joined: Wed Oct 24, 2012 4:26 pm

Re: optional lines in report

Post by Valtécio »

Aleksey Andreyanov wrote:Hello.

Did you try to use Conditions to disable some Data Bands?

Thank you.
hi. thx for your attention. Yes I did.
Valtécio
Posts: 37
Joined: Wed Oct 24, 2012 4:26 pm

Re: optional lines in report

Post by Valtécio »

Hi Aleksey

I did found the problem, but the soluction...

At bottom from databand1 exists a horizontal line(almost hidden, but I need to use). this line don't go to up when the optional field above don't have data. so, stil exists a blank line.

I put this horizontal line at the top from Databand1. it was almost ok, almost because the last registry from the group dont have this last line that could be at the bottom.

The horizontal line doesn't have some properties to make go up when the optional fields doesn't have data.

thx again
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: optional lines in report

Post by HighAley »

Hello.

Please, send us a sample report template to reproduce the issue for analysis.

Thank you.
Post Reply