Page 1 of 1

Gantt chart not working / different behaviour between Preview and Viewer

Posted: Fri Feb 12, 2021 10:15 am
by rth001
Hello,

Once again I'm having troubles with charts in Stimulsoft.

This time it is a very very basic sample, where I followed your video tutorial.

Version: latest release 2021
Datasoure: Business Object

I have only two simple elements with an ID (text), Planned start and Planned End date.(type datetime?)
These elements I want to display in a Gantt-Chart
see setup
setup chart.PNG
setup chart.PNG (121.65 KiB) Viewed 3846 times
This works fine in Desinger preview
setup preview.PNG
setup preview.PNG (55.75 KiB) Viewed 3846 times

But: as soon i render the report from code, it doesn't work anymore

Still we only want to display 2 elements, (RTH1+RTH2 with simple dates, same as in preview)
When running out of code the following issues happen
BARS are not displayed at all
X-Achse ist nor recognized as date
Also when I out "MM/dd/yyyy" to property "Format" on X-Achse it doesn't help
Also I tried to change the datatype of the property from DateTime? to DateTime - also without success...
bug.PNG
bug.PNG (22.56 KiB) Viewed 3846 times
What did I do wrong?
Why is the behaviour different? Any ideas?

Re: Gantt chart not working / different behaviour between Preview and Viewer

Posted: Mon Feb 15, 2021 10:13 pm
by Lech Kulikowski
Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.

Re: Gantt chart not working / different behaviour between Preview and Viewer

Posted: Wed Feb 17, 2021 1:47 pm
by rth001
Hello,

Please find the sample attached

NOTE: The issue must be somewhere in the statement SavePackedDocumentToByteArray or LoadPackedDocument

If I render my report it works. But if I do a SavePackedDocumentToByteArray and then a LoadPackedDocument it won't work. In this case it won't recognize dates correctly in the chart

Re: Gantt chart not working / different behaviour between Preview and Viewer

Posted: Fri Feb 19, 2021 12:29 pm
by Lech Kulikowski
Hello,

Thank you for the sample, we have reproduced the issue.
We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#3603

Re: Gantt chart not working / different behaviour between Preview and Viewer

Posted: Tue Mar 02, 2021 10:51 am
by rth001
Hi!

Can you already tell when a fix will be ready?

Thanks

Re: Gantt chart not working / different behaviour between Preview and Viewer

Posted: Wed Mar 03, 2021 7:46 pm
by Lech Kulikowski
Hello,

We are working on the problem. We will let you know when the solution is available.

Thank you.

Re: Gantt chart not working / different behaviour between Preview and Viewer

Posted: Tue Mar 09, 2021 2:46 pm
by Lech Kulikowski
Hello,

The issue is fixed. The fix will be available in the next build in the next week.

Thank you.