Hyperlink chart header (title)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Dan Smith
Newbie
Newbie
Posts: 15
Joined: Fri Sep 23, 2005 4:00 am

Hyperlink chart header (title)

Post by Dan Smith » Mon Jan 09, 2006 4:28 pm

Is it possible to create a hyperlink out of the chart header/title?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Jan 10, 2006 11:30 am

Hi Dan,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Dan Smith
Newbie
Newbie
Posts: 15
Joined: Fri Sep 23, 2005 4:00 am

Post by Dan Smith » Tue Jan 10, 2006 3:09 pm

Web forms

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jan 11, 2006 11:55 am

Hi Dan,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

Dan Smith
Newbie
Newbie
Posts: 15
Joined: Fri Sep 23, 2005 4:00 am

Post by Dan Smith » Wed Jan 11, 2006 2:50 pm

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()

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri Jan 13, 2006 8:42 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Dan Smith
Newbie
Newbie
Posts: 15
Joined: Fri Sep 23, 2005 4:00 am

Post by Dan Smith » Tue Jan 17, 2006 5:19 pm

The newsgroup does not work for me. I will email the code sample

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Jan 18, 2006 9:35 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply