Some settings not saved in TChart 2011.
Some settings not saved in TChart 2011.
Hello,
The "Visible" setting the gradient on "walls" is not being saved.
To reproduce,
1. Display the graph editing dialog.
2. Click the "Walls" tab.
3. Click the "Back" tab.
4. Click the "Gradient" button.
5. Click "Visible".
6. Save the graph to a stream
7. Load from a stream. The "Visible" is now ticked again.
I store my TCharts with the following code
COleVariant tStream = pTChart->GetExport().GetAsNative().SaveToStream(TRUE);
// attach the stream to SafeArray
COleSafeArray safeArray;
safeArray.Attach(tStream);
and then load using
m_PropGraph.pTChart->GetImport().LoadFromStream(*m_pGraphContentsStream);
Tony.
The "Visible" setting the gradient on "walls" is not being saved.
To reproduce,
1. Display the graph editing dialog.
2. Click the "Walls" tab.
3. Click the "Back" tab.
4. Click the "Gradient" button.
5. Click "Visible".
6. Save the graph to a stream
7. Load from a stream. The "Visible" is now ticked again.
I store my TCharts with the following code
COleVariant tStream = pTChart->GetExport().GetAsNative().SaveToStream(TRUE);
// attach the stream to SafeArray
COleSafeArray safeArray;
safeArray.Attach(tStream);
and then load using
m_PropGraph.pTChart->GetImport().LoadFromStream(*m_pGraphContentsStream);
Tony.
Re: Some settings not saved in TChart 2011.
Hi Tony,
I'm trying to reproduce it in VB6 but it seems to work fine. Here it is the code I used:
After importing the chart, I can't see the back wall. I've also tried giving it another color to see it clearer:
If you still have problems with it, please try to arrange a simple example project we can run as-is to reproduce the problem here.
Also please tell us what exact TeeChart version are you using.
I'm trying to reproduce it in VB6 but it seems to work fine. Here it is the code I used:
Code: Select all
TChart1.Walls.Back.Visible = False
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
tmpStream = TChart1.Export.asNative.SaveToStream(True)
TChart1.ClearChart
TChart1.Import.LoadFromStream tmpStream
Code: Select all
TChart1.Walls.Back.Color = vbRed
TChart1.Walls.Back.Gradient.Visible = False
TChart1.Walls.Back.Visible = False ' commenting/uncommenting this line makes the difference, as expected
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
Stream = TChart1.Export.asNative.SaveToStream(True)
TChart1.ClearChart
TChart1.Import.LoadFromStream Stream
Also please tell us what exact TeeChart version are you using.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some settings not saved in TChart 2011.
Code: Select all
TChart1.Walls.Back.Visible = False
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
tmpStream = TChart1.Export.asNative.SaveToStream(True)
TChart1.ClearChart
TChart1.Import.LoadFromStream tmpStream
What happens if you do something like try and load to a different chart?
Code: Select all
TChart1.Walls.Back.Visible = False
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
tmpStream = TChart1.Export.asNative.SaveToStream(True)
TChart2.ClearChart
TChart2.Import.LoadFromStream tmpStream
Re: Some settings not saved in TChart 2011.
Hi,
With that code I get two charts looking the same (with TeeChart v2011.0.0.5):
With that code I get two charts looking the same (with TeeChart v2011.0.0.5):
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some settings not saved in TChart 2011.
Try this. Create two charts, one is initialised with a red background and some sample values. Then copy to a new chart via SaveToStream/LoadFromStream. The panel settings are not saved.
Code: Select all
Private Sub UserForm_Initialize()
UserForm1.TChart1.Panel.Color = RGB(255, 0, 0)
UserForm1.TChart1.Panel.Gradient.Visible = False
TChart1.AddSeries scLine
TChart1.Series(0).FillSampleValues
End Sub
Private Sub CopyChart1ToChart2_Click()
Dim stream
stream = TChart1.Export.asNative.SaveToStream(True)
TChart2.Import.LoadFromStream stream
End Sub
Re: Some settings not saved in TChart 2011.
Hi,
Right, it seems the Gradient.Visible property isn't restored correctly. I've added it to the defect list to be revised (TA05016218).
Right, it seems the Gradient.Visible property isn't restored correctly. I've added it to the defect list to be revised (TA05016218).
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some settings not saved in TChart 2011.
Is there a workaround for now?
Re: Some settings not saved in TChart 2011.
Hi Tony,
The only workaround I see is to manually save&restore the gradient.visible property into a variable.
The only workaround I see is to manually save&restore the gradient.visible property into a variable.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some settings not saved in TChart 2011.
Is the gradient the only thing that is not stored?
Re: Some settings not saved in TChart 2011.
Hi Tony,
The gradient is the only thing we've identified that isn't been correctly exported/imported.
We haven't verified all the TeeChart properties. So, if anybody finds a property not being exported/imported, don't hesitate to let us know.
The gradient is the only thing we've identified that isn't been correctly exported/imported.
We haven't verified all the TeeChart properties. So, if anybody finds a property not being exported/imported, don't hesitate to let us know.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some settings not saved in TChart 2011.
It seems as if the following is not saved either
Code: Select all
UserForm1.TChart1.Walls.Back.Transparent = True
Re: Some settings not saved in TChart 2011.
Hi Tony,
You are right. I've added it to the TA05016218 description.
Thanks for reporting it.
You are right. I've added it to the TA05016218 description.
Thanks for reporting it.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: Some settings not saved in TChart 2011.
Hello,
These issues can't be reproduced with the latest release version. Serialization appears to be working correctly for these cases. The registered issue will be closed unless new information to the contrary comes to light.
Regards,
Marc Meumann
These issues can't be reproduced with the latest release version. Serialization appears to be working correctly for these cases. The registered issue will be closed unless new information to the contrary comes to light.
Regards,
Marc Meumann
Steema Support