Problem with ShiftingMode

Stimulsoft Reports.WPF discussion
Post Reply
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Problem with ShiftingMode

Post by PJoyeux »

Hi,

in many of my reports I use the property "ShiftingMode" to accomodate the position of components to the extent/height of preceding components. This seems to work but sometimes it doens't and for the life of me, I can't figure out why.

This is how my report looks when printed. Two labels are printed above each other because the shifting doesn't work (at least this is my assumption...)
a screenshot of the rendered report with the visible problem.
a screenshot of the rendered report with the visible problem.
Shifting_Wrong.png (21.78 KiB) Viewed 6110 times
If I replace the formular (IIF) of a certain component by a simple stupid text like "BLA", then my report looks like this. This is correct (even if "BLA" is stupid here...). The label "Eingegangen" is below the label "Sonstiges":
a screenhot of the rendered report the way it should be (besides "BLA")
a screenhot of the rendered report the way it should be (besides "BLA")
Shifting_Correct.png (16.84 KiB) Viewed 6110 times
This is the field whose content I have changed from a formula to "BLA":
a screenshot of the report in the designer showing the component that seems to create the problem
a screenshot of the report in the designer showing the component that seems to create the problem
Schifting_Report_Screenshot.png (113.96 KiB) Viewed 6110 times
The formula was : {IIF(Buchung.BuchungExterneBemerkungen != "", Buchung.BuchungSummeSonstiges, null)}
It seems that if the formular returns null or "" or " " then the problems occurs...

I have attached the report and hope you can tell me what's wrong, because I have another one that is more complicated where I have the same kind of problems...

Further: I could swear, that these things worked a few weeks ago... If have tested this with 2014.1.1809 and 2014.1.1811.

Hoping for a quick answer as always, since this is really creating troubles here... :-/

Cheers,
Pascal
Attachments
Schifting_Report.mrt
The report itself
(50.73 KiB) Downloaded 457 times
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Problem with ShiftingMode

Post by PJoyeux »

Here another problem that looks very similar...

Wrong ouput: Two labels overlapping and the blue-databand should show much more data, but is overlapped by the green databand which is situated in an own panel:
Shifting_Problem2.png
Shifting_Problem2.png (63.42 KiB) Viewed 6108 times
This is a screenshot of the designer:
Shifting_Problem3.png
Shifting_Problem3.png (76.48 KiB) Viewed 6108 times
I have attached the report. The problem is on the 2nd Page.

I really hope you can help me with those reports...

Cheers,
Pascal
Attachments
Fahrauftrag.mrt
(69.94 KiB) Downloaded 414 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with ShiftingMode

Post by HighAley »

Hello.

If you use Shift Mode property, then all components will be shifted if one of components higher was shrunk.
Using Panels for each group of components will help you to avoid this issue.

Thank you.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Problem with ShiftingMode

Post by PJoyeux »

Hi,

in my second example (my second post) I already do use panels, and this doesn't help... I can try using panels in the first example though...

Could you be so kind as to alter my second report (the 2nd Page) the way you think it must be in order to work? Thank you very much in advance!

Cheers,
Pascal
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Problem with ShiftingMode

Post by PJoyeux »

Ok...

I think I found the problem. Many of my components were not placed on a band but instead directly on the page like this (the components in the red squares):
Bild 5.png
Bild 5.png (79.05 KiB) Viewed 6093 times
Now I have put them in a band too:
Bild 6.png
Bild 6.png (92.24 KiB) Viewed 6093 times
And the shifting works:
Bild 7.png
Bild 7.png (38.64 KiB) Viewed 6093 times
It's a bad habit of mine to not use bands when I know I have only ONE record... :lol:

Thanks for your patience, this report works now and I will try adding panels to the other one (the first post in this thread).

Cheers,
Pascal
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Problem with ShiftingMode

Post by PJoyeux »

Well, I still have an issue with shifting... When a component situated above another is disabled using conditions, then the following component does not shift upwards...

In this report the Panel that contains DataBand3 and the label on its left have a condition that set the property "enabled" to false:
Bild 9.png
Bild 9.png (62.56 KiB) Viewed 6090 times
Then the report looks like this at runtime:
Bild 10.png
Bild 10.png (23.95 KiB) Viewed 6090 times
I was expecting the panel containing DataBand6 to shift upwards to close the gap. I have set the "CanShrink"-Property of all components within the first panel and have set the ShiftingMode of the second Panel to "Increasing Size" and "Decreasing Size" bus still the gap is not closed.

I have attached the report again, it is the second page.

I hope you can tell me where the problem is...

Cheers,
Pascal
Attachments
Fahrauftrag.mrt
(100.7 KiB) Downloaded 403 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Problem with ShiftingMode

Post by HighAley »

Hello.

You shouldn't hide Panel2 using conditions. Use this Condition on the Data Band.
If the component is disabled, the components under it will not go up. The component should be shrunk.

Thank you.
User avatar
PJoyeux
Posts: 160
Joined: Tue Nov 26, 2013 9:40 am
Location: Germany

Re: Problem with ShiftingMode

Post by PJoyeux »

Aleksey Andreyanov wrote:You shouldn't hide Panel2 using conditions. Use this Condition on the Data Band.
Aah, ok... Thank you, I was able to achieve what I want.

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

Re: Problem with ShiftingMode

Post by HighAley »

Hello.

Good. Let us know if you need any additional help.

Thank you.
Post Reply