Hi, I'm using the Activex control in a .Net project, because we need that users can interact with charts.
For coding we use TChartClass object, it works so good but now I'm getting a little problem. I've attached OnGetAxisLabel event because I need to change bottom label texts, but event is not ever fired.
I've tried to set TChart.Axis.Bottom.Labels.Multiline = true, but doesn't work. Any idea?
Regards.
OnGetAxisLabel not fired
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi TenarisSiderca,
In order for us to be able to give a more accurate reply could you please answer a few simple questions before?
Are you using TeeChart Pro ActiveX in a .NET WinForms or WebForms application? Which exact TeeChart Pro ActiveX version are you using?
Thanks in advance.
In order for us to be able to give a more accurate reply could you please answer a few simple questions before?
Are you using TeeChart Pro ActiveX in a .NET WinForms or WebForms application? Which exact TeeChart Pro ActiveX version are you using?
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 |
-
- Newbie
- Posts: 3
- Joined: Mon Oct 04, 2004 4:00 am
I really appreciate the fast answering! I forget to send you minimal details about my application, sorry.
I'm using TeeChart Activex object in webforms, with the "object" tag, that's an example:
TeeChart DLL reports v1.0.3705 version.
Interop DLL always reports v1.0 version.
We use C# in our applications.
I'm using TeeChart Activex object in webforms, with the "object" tag, that's an example:
Code: Select all
<OBJECT id="TChart1" codeBase="http://servername/Teechart7.cab#version=7,0,0,0" type="application/x-oleobject" classid="CLSID:FAB9B41C-87D6-474D-AB7E-F07D78F2422E" VIEWASTEXT><PARAM NAME="Base64" VALUE="VFBGMAtUQ2hhcnRDaGFydAAETGVmdAIAA1RvcAIABVdpZHRoA5QDBkhlaWdodAOaARJUaXRsZS5U
ZXh0LlN0cmluZ3MBBghUZWVDaGFydAAQTWF4UG9pbnRzUGVyUGFnZQIABFBhZ2UCAQ1TY2FsZUxh
c3RQYWdlCQAAAAAAAAIAAAAA/////w==">
</OBJECT>
Interop DLL always reports v1.0 version.
We use C# in our applications.
-
- Newbie
- Posts: 3
- Joined: Mon Oct 04, 2004 4:00 am
No more answers?
I don't received any answer after the first question, I'll try to explain better the problem.
Yesterday I wrote for problems with OnGetAxisLabel event. I was wrong talking about C# events, I'm capturing all events with VBScript inside html code. For example, I need to display popup menus when user clicks any bar, then I use:
OnGetAxisLabel works ok using next code:
But references in VBScript seems to be value references, changing LabelText doesn't apply to the graphic. I was seeking on help to find some property that applies to exact bottom axis label but I don't found it.
Regards.
Yesterday I wrote for problems with OnGetAxisLabel event. I was wrong talking about C# events, I'm capturing all events with VBScript inside html code. For example, I need to display popup menus when user clicks any bar, then I use:
Code: Select all
Sub TChart1_OnClickSeries(SeriesIndex, ValueIndex, Button, Shift, x, y)
Code: Select all
Sub TChart1_OnGetAxisLabel(Axis, SeriesIndex, ValueIndex, LabelText)
Regards.
Hi,
In a web application using VBScript the use of the Chart1_OnGetAxisLabel() event is a little more complicated in that text is not able to passed back from the event to the TeeChart Control. To work around this you will have to use the technique descibed in ASP Server examples in the example called "Page showing 4 different export formats" - the first of these, the TeeChart Native Tee template one, has text written to its left axis. The code that does this can be seen in the compareOutput.inc file under C:\Inetpub\wwwroot\TeeChart7.
Another way around will be to set custom axis labels items using technique like in the TeeChart Demo features project under :
All Features -> Welcome ! -> Axes -> Labels -> Custom Labels
In a web application using VBScript the use of the Chart1_OnGetAxisLabel() event is a little more complicated in that text is not able to passed back from the event to the TeeChart Control. To work around this you will have to use the technique descibed in ASP Server examples in the example called "Page showing 4 different export formats" - the first of these, the TeeChart Native Tee template one, has text written to its left axis. The code that does this can be seen in the compareOutput.inc file under C:\Inetpub\wwwroot\TeeChart7.
Another way around will be to set custom axis labels items using technique like in the TeeChart Demo features project under :
All Features -> Welcome ! -> Axes -> Labels -> Custom Labels
Pep Jorge
http://support.steema.com
http://support.steema.com