Hyperlink chart header (title)
Hyperlink chart header (title)
Is it possible to create a hyperlink out of the chart header/title?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Dan,
In which kind of application are you trying to achieve that, WinForms or WebForms application?
Thanks in advance.
In which kind of application are you trying to achieve that, WinForms or WebForms application?
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Dan,
Yes, you can set AutoPostback to true and use webchart's OnClickTitle event as shown here:
Yes, you can set AutoPostback to true and use webchart's OnClickTitle event as shown here:
Code: Select all
private void Page_Load(object sender, System.EventArgs e)
{
WebChart1.Chart[0].FillSampleValues();
WebChart1.AutoPostback=true;
}
private void WebChart1_ClickTitle(object sender, System.Web.UI.ImageClickEventArgs e)
{
Response.Redirect("http://www.teechart.net");
}
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 |
I tried the code which generated an exception (below). Any idea what is wrong?
Thanks,
Dan
Server Error in '/Lakes' Application.
--------------------------------------------------------------------------------
Invalid parameter used.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Invalid parameter used.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Invalid parameter used.]
System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height, PixelFormat pixelformat)
Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height)
Steema.TeeChart.Web.WebChart.OnPreRender(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Page.ProcessRequestMain()
Thanks,
Dan
Server Error in '/Lakes' Application.
--------------------------------------------------------------------------------
Invalid parameter used.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.ArgumentException: Invalid parameter used.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ArgumentException: Invalid parameter used.]
System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height, PixelFormat pixelformat)
Steema.TeeChart.Chart.Bitmap(Int32 width, Int32 height)
Steema.TeeChart.Web.WebChart.OnPreRender(EventArgs e)
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Control.PreRenderRecursiveInternal()
System.Web.UI.Page.ProcessRequestMain()
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Dan,
Could you please send us an small example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
Could you please send us an small example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Dan,
I've received the application and I can run it on my machine. However, I haven't been able to reproduce the problem you reported. Could you please tell me the exact steps I should follow to reproduce it here?
Thanks in advance.
I've received the application and I can run it on my machine. However, I haven't been able to reproduce the problem you reported. Could you please tell me the exact steps I should follow to reproduce it here?
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 |