Print horizontal line at bottom databand with optional lines

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

Print horizontal line at bottom databand with optional lines

Post by Valtécio »

Hi

I need some help to solve this issue:

I have a report with six GroupHeaderBands and yours respectives GroupFooterBands

There are a DataBand1 with DataSource configured to a Table... with 5 classifications fields

Important-> [Favorecido:] ; [Dados:] [Barcode:] are field's labels

There are a horizontal line at bottom of databand1 but the optional lines of fields that exists before are printed as blank line

Attached is the files to explain better.

thx since now
Attachments
ScreenShot124.jpg
ScreenShot124.jpg (199.02 KiB) Viewed 4393 times
Error optional line.jpg
Error optional line.jpg (191.5 KiB) Viewed 4393 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print horizontal line at bottom databand with optional l

Post by HighAley »

Hello.

Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?
Do you need this line? Or you can't remove it?
Do you export report to txt file?

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

Re: Print horizontal line at bottom databand with optional l

Post by Valtécio »

Hello

Sorry my basic of basic english. glup!

answering:


I need print this horizontal line that I puted at bottom of the DataBand1 (is not showing on this printscreen because I removed when pressed printscreen key. in second attached printscreen)

I do not need export, just print this report with height dynamic built of the databand

The height of databand1 need to be dynamic, dont printing blank line.

There are two files attached:

The second is showing hot I puted the fields in Stimul

{compromissos.favorecido} and {compromissos.pagamento} are both optional fields. ie. do not need print when values of fields are blank. but stimul print a blank line and after this horizontal line.

if the height of databand1 shrink accoplished when fields are not print will be ok.


The first printscreen file is Notepad++ is showing the errors and how do I need to print with correct.

Plz. pay attention on favorecido label, dados label and barcode label at each line. they are all optinal fields. and the error is when stimul print a blank line instead of disapear this field and up the field that are below.


mistakes of stimul( me !?)

error number 1
field Sistema ... (line 1)
field Favorecido: ...(line 2)
blank line -> error. this line must not exist because the value is blank (line 3)
horizontal line _________________________________ ... (line 4)

correct error number 1
field Sistema ... (line 1)
field favorecido: ...(line 2)
horizontal line _________________________________ ...(line 3)

***************************************************************************************************

error number 1
field Sistema ... (line 1)
blank line -> error. this line must not exist because the value is blank (line 2)
barcode: ...(line 3)
horizontal line _________________________________ ...(line 4)

correct error number 1
field Sistema ... (line 1)
barcode: ...(line 2)
horizontal line _________________________________ ...

***************************************************************************************************

error number 3
blank line -> error. this line must not exists because the value is blank (line 1)
blank line -> error. this line must not exists because the value is blank (line 2)
blank line -> error. this line must not exists because the value is blank (line 3)
horizontal line _________________________________ ...(line 4)

correct error number 3
horizontal line _________________________________ ...(line 1) line 4 turn line 1 at this point

thx
Valtécio
Posts: 37
Joined: Wed Oct 24, 2012 4:26 pm

Re: Print horizontal line at bottom databand with optional l

Post by Valtécio »

Hi Aleksey

I did some improvements in the report

I did use three panels: the main panel have the other two panels and I set the properties dock style to TOP and shrink to can do it

Its works perfectly, but only if i don't use the line at bottom of databand1, how you maybe can see in ScreenShot127.jpg.

but... always have a but...

When I put a horizontal line, the shrink doesn't works. as can you see at screenshots "File with horizontal line - error"
Attachments
File 1 without horizontal line - ok.png
File 1 without horizontal line - ok.png (147.05 KiB) Viewed 4387 times
File 1 with horizontal line - error.png
File 1 with horizontal line - error.png (173.9 KiB) Viewed 4387 times
ScreenShot127.jpg
ScreenShot127.jpg (376.13 KiB) Viewed 4387 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print horizontal line at bottom databand with optional l

Post by HighAley »

Hello.

Please send us your report template with sample data for analysis.

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

Re: Print horizontal line at bottom databand with optional l

Post by Valtécio »

Hello Aleksey

thx for your help

yours request attached:
Attachments
Sistema.csv
(20 Bytes) Downloaded 457 times
TipoPagamento.csv
(116 Bytes) Downloaded 572 times
Logotipo.csv
(32.02 KiB) Downloaded 372 times
ContaBancaria.csv
(309 Bytes) Downloaded 599 times
Compromissos.csv
(2.82 KiB) Downloaded 386 times
Cabecalho.csv
(119 Bytes) Downloaded 652 times
CompromissosBancos.mrt
(68.04 KiB) Downloaded 491 times
CompromissosBancos without line - ok.pdf
(105.14 KiB) Downloaded 1180 times
CompromissosBancos with line - not ok.pdf
(103.88 KiB) Downloaded 669 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print horizontal line at bottom databand with optional l

Post by HighAley »

Hello.

Please, try to set the Shift Mode property of the HorizontalLinePrimitive2 to Increasing Size, Decreasing Size.

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

Re: Print horizontal line at bottom databand with optional l

Post by Valtécio »

Hello

Didn't works. Still exists a blank line
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Print horizontal line at bottom databand with optional l

Post by HighAley »

Hello.

We can't connect your data to the report template.
Please, use the following code in the BeforePrint event of a page and sent us the files you get.

Code: Select all

{YourDataTableName}.DataTable.DataSet.WriteXml("e:\\data.xml");
{YourDataTableName}.DataTable.DataSet.WriteXmlSchema("e:\\data.xsd");
Thank you.
Valtécio
Posts: 37
Joined: Wed Oct 24, 2012 4:26 pm

Re: Print horizontal line at bottom databand with optional l

Post by Valtécio »

Hello

the files are attached

thx
Attachments
Data.xsd
(5.49 KiB) Downloaded 355 times
Data.xml
(101.89 KiB) Downloaded 315 times
Post Reply