Gantt chart not working / different behaviour between Preview and Viewer

Stimulsoft Reports.WPF discussion
Post Reply
rth001
Posts: 32
Joined: Fri May 15, 2020 9:17 am

Gantt chart not working / different behaviour between Preview and Viewer

Post 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 3491 times
This works fine in Desinger preview
setup preview.PNG
setup preview.PNG (55.75 KiB) Viewed 3491 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 3491 times
What did I do wrong?
Why is the behaviour different? Any ideas?
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
rth001
Posts: 32
Joined: Fri May 15, 2020 9:17 am

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

Post 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
Attachments
StimulsoftSampleProjectWpf.zip
(45.64 KiB) Downloaded 204 times
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

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

Post 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
rth001
Posts: 32
Joined: Fri May 15, 2020 9:17 am

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

Post by rth001 »

Hi!

Can you already tell when a fix will be ready?

Thanks
Lech Kulikowski
Posts: 6197
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

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

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply