Page 1 of 2
Group header with rounded rectangle on multiple pages
Posted: Wed Jun 15, 2016 8:04 pm
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
Re: Group header with rounded rectangle on multiple pages
Posted: Thu Jun 16, 2016 10:50 am
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.
Re: Group header with rounded rectangle on multiple pages
Posted: Thu Jun 16, 2016 11:47 am
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
Re: Group header with rounded rectangle on multiple pages
Posted: Fri Jun 17, 2016 10:45 am
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.
Re: Group header with rounded rectangle on multiple pages
Posted: Fri Jun 17, 2016 8:05 pm
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.
Re: Group header with rounded rectangle on multiple pages
Posted: Mon Jun 20, 2016 3:53 pm
by Alex K.
Hello,
We need some additional time for investigating the issue.
We will let you know about the result.
Thank you.
Re: Group header with rounded rectangle on multiple pages
Posted: Tue Jun 21, 2016 6:36 pm
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.
Re: Group header with rounded rectangle on multiple pages
Posted: Fri Jun 24, 2016 10:38 am
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.
Re: Group header with rounded rectangle on multiple pages
Posted: Fri Jun 24, 2016 3:55 pm
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.
Re: Group header with rounded rectangle on multiple pages
Posted: Fri Jun 24, 2016 6:32 pm
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.