Exception creating relation
-
- Posts: 3
- Joined: Wed Sep 11, 2013 3:03 pm
Exception creating relation
Hi,
I have a problem. When I try to create a relation between a data source and an other one from the previuos.
I have detailed this particular situation in a power point (see attachments).
Thanks in advance
Daniele
System.NullReferenceException: Object reference not set to an instance of an object.
at Stimulsoft.Base.StiExceptionForm..ctor(Exception exception)
at Stimulsoft.Base.StiExceptionProvider.Show(Exception exception)
at Stimulsoft.Report.Design.Controls.StiDesignerPreviewControl.btRefresh_Click(Object sender, EventArgs e)
at Stimulsoft.Report.Design.StiDesignerControl.UpdateDesignerPreviewControl2(Object sender, EventArgs e)
at Stimulsoft.Report.Design.StiDesignerControl.TabControl_SelectedTabChanged(Object sender, TabStripTabChangedEventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.TabControl.InvokeSelectedTabChanged(TabStripTabChangedEventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.TabControl.tabStrip1_SelectedTabChanged(Object sender, TabStripTabChangedEventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.TabStrip.InternalOnMouseDown(MouseEventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.TabStrip.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Stimulsoft.Controls.Win.DotNetBar.TabStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I have a problem. When I try to create a relation between a data source and an other one from the previuos.
I have detailed this particular situation in a power point (see attachments).
Thanks in advance
Daniele
System.NullReferenceException: Object reference not set to an instance of an object.
at Stimulsoft.Base.StiExceptionForm..ctor(Exception exception)
at Stimulsoft.Base.StiExceptionProvider.Show(Exception exception)
at Stimulsoft.Report.Design.Controls.StiDesignerPreviewControl.btRefresh_Click(Object sender, EventArgs e)
at Stimulsoft.Report.Design.StiDesignerControl.UpdateDesignerPreviewControl2(Object sender, EventArgs e)
at Stimulsoft.Report.Design.StiDesignerControl.TabControl_SelectedTabChanged(Object sender, TabStripTabChangedEventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.TabControl.InvokeSelectedTabChanged(TabStripTabChangedEventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.TabControl.tabStrip1_SelectedTabChanged(Object sender, TabStripTabChangedEventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.TabStrip.InternalOnMouseDown(MouseEventArgs e)
at Stimulsoft.Controls.Win.DotNetBar.TabStrip.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at Stimulsoft.Controls.Win.DotNetBar.TabStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
- Attachments
-
- stimulsoft_exception_relation.zip
- (387.88 KiB) Downloaded 110 times
Re: Exception creating relation
Hello,
Please check the last prerelease build.
If the issue still present please send us a sample report which reproduce the issue for analysis.
Thank you.
Please check the last prerelease build.
If the issue still present please send us a sample report which reproduce the issue for analysis.
Thank you.
-
- Posts: 3
- Joined: Wed Sep 11, 2013 3:03 pm
Re: Exception creating relation
I replaced the dll with the latest version (Stimulsoft Reports.Ultimate 2013.08.30 ), but the error still occurs.
I attach to this mail a sample report as example.
Thanks
Daniele
I attach to this mail a sample report as example.
Thanks
Daniele
- Attachments
-
- Report_with_relation.mrt
- (7.27 KiB) Downloaded 114 times
Re: Exception creating relation
Hello,
We couldn't reproduce this bug.
Please send us a test data for your report.
Thank you.
We couldn't reproduce this bug.
Please send us a test data for your report.
Thank you.
-
- Posts: 3
- Joined: Wed Sep 11, 2013 3:03 pm
Re: Exception creating relation
Hello,
my information was incomplete. Our software creates the two datasource via code. Looking for a solution on your forum I read that it is necessary to set the parameter report.CacheAllData = true; in cases where there is a relationship between two different datasource http://admin.stimulsoft.com/Documentati ... tasets.htm
In fact in this way the problem seems to be solved.
However, since the datasource are dynamically created by our users, how can I verify, via code, in wich cases I have to set this property to true?
This solution (report.CacheAllData = true) may cause decreased of performance or memory problems?
Thanks in advance
Daniele
my information was incomplete. Our software creates the two datasource via code. Looking for a solution on your forum I read that it is necessary to set the parameter report.CacheAllData = true; in cases where there is a relationship between two different datasource http://admin.stimulsoft.com/Documentati ... tasets.htm
In fact in this way the problem seems to be solved.
However, since the datasource are dynamically created by our users, how can I verify, via code, in wich cases I have to set this property to true?
This solution (report.CacheAllData = true) may cause decreased of performance or memory problems?
Thanks in advance
Daniele
Re: Exception creating relation
Hello,
There is no need to set this property for the stadard DataSet. It is necessary in your report because you have added our additional data source - "Data from Other DataSource" and created a link between them.
Thank you.
There is no need to set this property for the stadard DataSet. It is necessary in your report because you have added our additional data source - "Data from Other DataSource" and created a link between them.
Thank you.