Before Print condition to move text position

Stimulsoft Reports.NET discussion
Post Reply
MarceloOD
Posts: 7
Joined: Thu Dec 08, 2022 11:48 pm

Before Print condition to move text position

Post by MarceloOD »

Hello guys

I am trying create a condition in Before print, but it is not working ( I don't know if Before Print is the best choice for that, please, let me know).

Look at picture below, I have this Routing field (Text48), and if my part is assembly I want move 0.3 above. In the Before print you can see the condition I put.

However I noticed 2 problem:

1- Assembly that is the condition is always true. Note In the first part of report it is possible to see that I have Assembly=false printed, but the text still moving.
It seems the system is looking for the last part which really is an and considering true for all lines, I tested with only one part and it is working fine, only not work if I have any assembly.

2-If you look at the second part, is still moving, is seems se system is considering the value I put before and it is not reset the value for TEXT48.Top.

Do you have any suggestion? Thanks
Attachments
before Print.png
before Print.png (329.44 KiB) Viewed 802 times
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Before Print condition to move text position

Post by Lech Kulikowski »

Hello,

We couldn't reproduce the issue on our samples.
Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.
MarceloOD
Posts: 7
Joined: Thu Dec 08, 2022 11:48 pm

Re: Before Print condition to move text position

Post by MarceloOD »

Hi, thanks for the reply.

Do you think the way I did it should work, for both questions I asked? or did you use a different syntax?

I don't know how to send an example, as it is a very large database and the Data Source is set up by an intermediary application that calls the Report directly within the application.

Thank you
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Before Print condition to move text position

Post by Lech Kulikowski »

Hello,

Yes, both options should work.
Could you prepare a simple report with test data showing your report structure and logic?

Thank you.
MarceloOD
Posts: 7
Joined: Thu Dec 08, 2022 11:48 pm

Re: Before Print condition to move text position

Post by MarceloOD »

Hi Lech
What kind of Data source it better for it? Excel, CVS or other?

If you have some link that explain how to do it, please share with me.

Best Regards
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Before Print condition to move text position

Post by Lech Kulikowski »

Hello,

You can use the "Embed all data to resources" option in the Dictionary - Action.

Thank you.
MarceloOD
Posts: 7
Joined: Thu Dec 08, 2022 11:48 pm

Re: Before Print condition to move text position

Post by MarceloOD »

Unfortunately my system doesn't have that option :(
Attachments
2023-01-05_16h47_19.png
2023-01-05_16h47_19.png (26.96 KiB) Viewed 763 times
2023-01-05_16h45_36.png
2023-01-05_16h45_36.png (12.21 KiB) Viewed 763 times
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Before Print condition to move text position

Post by Lech Kulikowski »

Hello,

In that version, that option is not available.

Thank you.
Post Reply