Page 1 of 1

Way to render color blocks on report

Posted: Fri Nov 17, 2023 11:51 am
by lucasrinaldi
I have a demand to build a report, but I am not sure if that's possible to do what I am told.
I need to render a block with the color the customer has previously saved on the database as shown below.

Is there a way to achieve that?

Re: Way to render color blocks on report

Posted: Mon Nov 20, 2023 7:46 pm
by Lech Kulikowski
Hello,

What product and version are you use?

Thank you.

Re: Way to render color blocks on report

Posted: Fri Nov 24, 2023 11:48 am
by lucasrinaldi
Copyright 2003-2023 Stimulsoft
Version: 2023.2.8 from 29 June 2023, WinForms. .NET 4.7.2.

Re: Way to render color blocks on report

Posted: Fri Nov 24, 2023 10:08 pm
by Lech Kulikowski
Hello,

Please send us a sample that reproduces the issue for analysis on support@stimulsoft.com

Thank you.

Re: Way to render color blocks on report

Posted: Tue Nov 28, 2023 11:18 am
by lucasrinaldi
It is really necessary? I need a way to render blocks with colors only

Re: Way to render color blocks on report

Posted: Wed Nov 29, 2023 1:03 am
by Lech Kulikowski
Hello,

How color is stored in the database?

As a way, you can apply color in the BeforePrint event.

Thank you.

Re: Way to render color blocks on report

Posted: Wed Nov 29, 2023 5:48 pm
by lucasrinaldi
Lech Kulikowski wrote: Wed Nov 29, 2023 1:03 am Hello,

How color is stored in the database?

As a way, you can apply color in the BeforePrint event.

Thank you.
Can't you provide some screenshots with instructions? This is a little vague.
I need to render a squared HTML block with colors inside. The color is stored on our database as HEX.
So we can render something like what I've uploaded.

PS: the image that I uploaded is made in photoshop, not an actual report.

Re: Way to render color blocks on report

Posted: Wed Nov 29, 2023 10:37 pm
by Lech Kulikowski
Hello,

Please check the sample report in the attachment.

Thank you.

Re: Way to render color blocks on report

Posted: Tue Dec 05, 2023 1:39 pm
by lucasrinaldi
Well it worked, thanks!

Now I have another question:
How can we implement the same as this picture using Stimulsoft?
Keep in mind that inside the boxes we could have multiple codes.
This is a risk matrix, to mitigate risks and evaluate opportunities.
Do you think that is possible to achieve this?

Re: Way to render color blocks on report

Posted: Tue Dec 05, 2023 9:39 pm
by Lech Kulikowski
Hello,

Depends on the data structure. Please check the Cross-Data components.

Thank you.