Height when rendering Panel

Stimulsoft Reports.NET discussion
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Height when rendering Panel

Post by Leandro Borges »

Hello.

Already sent in the previous notes, please verify.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Height when rendering Panel

Post by Leandro Borges »

Hello.

Waiting for return.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Height when rendering Panel

Post by HighAley »

Hello.

It's possible to create more simpler report template to show data this way.
Please, check the attached report.
Panel_modified.mrt
(23.14 KiB) Downloaded 533 times
Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Height when rendering Panel

Post by Leandro Borges »

Hello.

I understood what was done, but in my real case, the DataBands that are inside the Panel, point to different Data Source. Each Data Source can return a different amount of records. Is there another way to do it using the Panel?

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: Height when rendering Panel

Post by Edward »

Hi Leandro,

If you could merge the data from the two Data Sources you mentioned into the one Data Source, then this example is just the combination of the previous suggestions inside of the one panel only.

Text4.ProcessingDuplicates=Merge
ProcessingDuplicates-Merge.JPG
ProcessingDuplicates-Merge.JPG (100.21 KiB) Viewed 5229 times
The actual report contains only one panel instead of 2 as in your case. This is achievable if you could merge your data into 1 Data Source somehow.
If the data is difficult to modify outside the report, then the Data From Other Data Source is the way to do it. Please check this out:
https://www.stimulsoft.com/en/documenta ... source.htm

Thank you
Attachments
Panel_ProcessingDuplicates.mrt
(26.48 KiB) Downloaded 372 times
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Height when rendering Panel

Post by Leandro Borges »

Hello.

Did not work. The Panels must be the same height as the processed DataBand. Here is the example already sent.
Is there a function that captures the height of the DataBand when it is being processed and assign it to the Panels?
Is there another solution?

Thank you.
Attachments
Panel.mrt
(27.7 KiB) Downloaded 309 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Height when rendering Panel

Post by Alex K. »

Hello,

Sorry, maybe we did not exactly understand your task.
Please send us a screenshot or sample how it should look like.

Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Height when rendering Panel

Post by Leandro Borges »

Hello.

Here are 2 prints of my report. Report 1 is the report developed and report 2 is the generated report. In report 2, note that the height of the "Fonte Geradora" column is greater than the "Meio de Propagação" column. How do I get them to be the same height as they are from different data sources?

DataSources
DataBand2 = LocTrab_Risco_Agente
DataBand7 = LocTrab_Risco_Fonte_Geradora
DataBand8 = LocTrab_Risco_Meio_Propagacao

DataBand7 is inside a Panel and DataBand8 is inside another Panel. Panels are within DataBand2.

Thank you.
Attachments
Report 2.jpg
Report 2.jpg (223.84 KiB) Viewed 5216 times
Report 1.jpg
Report 1.jpg (408.25 KiB) Viewed 5216 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Height when rendering Panel

Post by HighAley »

Hello, Leonardo.

You task is not so easy. When the DataBand is rendering it's unknown what height of the DataBand2 will be.
So we have prepared a sample report for you. We are using the object variables to save the instances of the rendered components and change them in the After Print event of the DataBand2.
eight.png
eight.png (36.34 KiB) Viewed 5203 times
ChangeHeightOfThePanelContent.mrt
(28.79 KiB) Downloaded 493 times
Thank you.
Leandro Borges
Posts: 219
Joined: Tue Oct 27, 2015 4:19 pm

Re: Height when rendering Panel

Post by Leandro Borges »

Hello.

Were only the DataBand and Panel events used?
Could you explain what was done at the events?

Thank you.
Post Reply