Hi,
I upgraded a TeeChart.ocx from version 6 to 7.003 in a VB6 program. I receive then following error when I save the chart as a native TeeChart 'tee' template
Line code : tChart.Export.asNative.SaveToFile lsPathFileName, True
Error : -2147418113 Automation error Catastrophic failure
The same code work well with version 6. I'm able to save the chart as a JPEG format .
Sophie
INativeExport.SaveToFile return error Catastrophic Failure
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Sophie,
It works fine here using v7.0.0.3 ActiveX in VB6. Could you please send us a project we can run "as-is" to reproduce the problem here?
You can post the sample project at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
Thanks in advance.
It works fine here using v7.0.0.3 ActiveX in VB6. Could you please send us a project we can run "as-is" to reproduce the problem here?
You can post the sample project at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Hi Narcis,
The error arrive when you call the method .RemoveAllCustom before asNative.SaveToFile
Code sample for a VB project EXE
Private Sub Form_Load()
Set loTchart = CreateObject("TeeChart.TChart.7")
With loTchart
.Axis.RemoveAllCustom
lsFichier = App.Path & "\courbe"
If Dir(lsFichier & ".tee", vbNormal) <> vbNullString Then
Kill lsFichier & ".tee"
End If
.Export.asNative.SaveToFile lsFichier, True
End With
Set loTchart = Nothing
End Sub
Sophie
The error arrive when you call the method .RemoveAllCustom before asNative.SaveToFile
Code sample for a VB project EXE
Private Sub Form_Load()
Set loTchart = CreateObject("TeeChart.TChart.7")
With loTchart
.Axis.RemoveAllCustom
lsFichier = App.Path & "\courbe"
If Dir(lsFichier & ".tee", vbNormal) <> vbNullString Then
Kill lsFichier & ".tee"
End If
.Export.asNative.SaveToFile lsFichier, True
End With
Set loTchart = Nothing
End Sub
Sophie
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Sophie,
Yes, you are right. I've been able to reproduce it here and it's a bug. I've included this issue to our deffect list to be fixed for future releases.
At the moment I can't think of a workaround.
Yes, you are right. I've been able to reproduce it here and it's a bug. I've included this issue to our deffect list to be fixed for future releases.
At the moment I can't think of a workaround.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |