Group header with rounded rectangle on multiple pages

Stimulsoft Reports.NET discussion
saskkuat
Posts: 8
Joined: Fri May 20, 2016 12:59 pm

Group header with rounded rectangle on multiple pages

Post by saskkuat »

Hi,

basically is the same issue of the topic -> viewtopic.php?f=8&t=35278&hilit=rounded+rectangle

but my report have groupheaders, how could i set the rounded rectangle without covering headers and footers

See the attached sample.

Thanks.

* Now attached the xml file
Attachments
dsPrestacaoItambe.xml
(50.71 KiB) Downloaded 401 times
sendStimul_GroupRoundedRectangle.mrt
(95.14 KiB) Downloaded 255 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Group header with rounded rectangle on multiple pages

Post by HighAley »

Hello.

Sorry, maybe we don't fully understand your question.
What result do you need to get?
Could you send us a screenshot of what you need to get?

Thank you.
saskkuat
Posts: 8
Joined: Fri May 20, 2016 12:59 pm

Re: Group header with rounded rectangle on multiple pages

Post by saskkuat »

Hi,

This is the issue...

My rounded rectangle doesn't close when page breaks, and then on the other page it covers the whole area of the header.

I understand that is because of start and end point of the rounded rectangle, but how can i close it at the end of the page even using groupbands and all the databans of my report

Thanks for the attention
Attachments
rectangle1.png
rectangle1.png (100.9 KiB) Viewed 5027 times
rectangle2.png
rectangle2.png (66.05 KiB) Viewed 5027 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Group header with rounded rectangle on multiple pages

Post by Alex K. »

Hello,

Please try to place the additional Footer component (with PrintOnAllPages=true) as you needed and resize rectangle on it.

Thank you.
Attachments
sendStimul_GroupRoundedRectangle_modified.mrt
(89.68 KiB) Downloaded 247 times
Rectangle.PNG
Rectangle.PNG (97.88 KiB) Viewed 5016 times
saskkuat
Posts: 8
Joined: Fri May 20, 2016 12:59 pm

Re: Group header with rounded rectangle on multiple pages

Post by saskkuat »

Hi,

Thanks for the answer!

It partially works, in your images and my tests the rounded rectangle keeps printing in footer space (reserved for image) as you can see in the attached image (green rectangle)...
then i remove the first groupbands and move your footer (with the end of the rounded rectangle) after the DataPrestac (that uses DataSaldoAnterior as master component) and solve that problem.

But, another one appears, this time when groupfooter print out, and a new groupheader starts, the rounded rectangle keep printing and union the groupfooter to the groupheader.
I need a gap between these two in this case, how can i do that?

I tryed this code:

Code: Select all

protected void tamanhoForma()
		{
			if (SaldoAnterior.conta_principal != Prestac.conta_principal) 
			{			
				this.EndPointPrimitive1.Parent = this.DataSaldoAnterior;		
				this.DataSaldoAnterior.Components.Add(this.EndPointPrimitive1);
				this.EndPointPrimitive1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(19.8, 0.7, 0, 0);
			}
			else
			{
				this.EndPointPrimitive1.Parent = this.esseFooter;
				this.esseFooter.Components.Add(this.EndPointPrimitive1);
				this.EndPointPrimitive1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(19.8, 0.05, 0, 0);
			}
		}
To control where and when the endpointprimitive will be.... it works for the first case (set endpoint into the databand), but, after that, apparently the end is on the right place but the rounded rectangle does not grow to the footer.

Any sugestion?

Thanks for all the attention.
Attachments
dsPrestacaoItambe120.xml
my xml used in the tests
(89.18 KiB) Downloaded 257 times
teste.mrt
my report for test
(104.62 KiB) Downloaded 445 times
Green rectangle is right - Red rectangle is the wrong case i speak up
Green rectangle is right - Red rectangle is the wrong case i speak up
myCase.png (219.04 KiB) Viewed 5013 times
Rectangle.PNG
Rectangle.PNG (39.22 KiB) Viewed 5013 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Group header with rounded rectangle on multiple pages

Post by Alex K. »

Hello,

We need some additional time for investigating the issue.

We will let you know about the result.
Thank you.
saskkuat
Posts: 8
Joined: Fri May 20, 2016 12:59 pm

Re: Group header with rounded rectangle on multiple pages

Post by saskkuat »

Hi,

Thanks a lot the attention

I think if you have the solution for this topic it may help...
> viewtopic.php?f=8&t=5227&hilit=move+databand&start=10

Waiting and thanks again.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Group header with rounded rectangle on multiple pages

Post by Alex K. »

Hello,

Sorry for the delay with response.
We have found some problem in your code (tamanhoForma) in which you change end Points of the RectanglePrimitive.

We need some additional time for finding the solution for your task.

Thank you.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Re: Group header with rounded rectangle on multiple pages

Post by Ivan »

Hello,

Please try to modify your tamanhoForma() method:

Code: Select all

		protected void tamanhoForma()
		{
			if (SaldoAnterior.conta_principal != Prestac.conta_principal) 
			{			
				this.DataSaldoAnterior.Components.Remove(this.EndPointPrimitive1);				
				this.esseFooter.Components.Remove(this.EndPointPrimitive1);
				
				this.DataSaldoAnterior.Components.Add(this.EndPointPrimitive1);				
				this.EndPointPrimitive1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(19.8, 0.7, 0, 0);
			}
			else
			{
				this.DataSaldoAnterior.Components.Remove(this.EndPointPrimitive1);				
				this.esseFooter.Components.Remove(this.EndPointPrimitive1);
				
				this.esseFooter.Components.Add(this.EndPointPrimitive1);
				this.EndPointPrimitive1.ClientRectangle = new Stimulsoft.Base.Drawing.RectangleD(19.8, 0.05, 0, 0);
			}
		}
Thank you.
saskkuat
Posts: 8
Joined: Fri May 20, 2016 12:59 pm

Re: Group header with rounded rectangle on multiple pages

Post by saskkuat »

Hi,

OMG, thank you!!

i've tried the remove property but just for one component at a time (esseFooter in first case, else DataSaldoAnterior)

Thanks a lot, it works! Great job.
Post Reply