Webchart not displayed in browser

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
POP
Newbie
Newbie
Posts: 8
Joined: Tue Jan 31, 2006 12:00 am

Webchart not displayed in browser

Post by POP » Wed Apr 26, 2006 8:16 am

Hi,
We do not want to use Session variables in our web application.
Is there any way to get the Tee-chart displayed without using Session? i.e. without using GetChart.aspx?

What about the TempChartStyle.File option? As of now i have managed to get the png files created on my custom directory by making appropriate registry changes. However these pictures do not appear on the web page. instead a red cross appears.

Please advice.

Thanks,
POP

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

Post by Narcís » Thu Apr 27, 2006 10:27 am

Hi POP,

Another option, which is included in the tutorials shipped with the next TeeChart for .NET v2 maintenance release is using an Httphandler:

The Httphandler option uses an internal TeeChart (WebChart) generator to recover the Chart image for the page.

The option generates no temporary files and requires no additional aspx file to recover a Chart (as would be the case with the Session and Cache options). The option requires one modification to the web.config file:

Anywhere between the web.config <system.web> </system.web> tages place the following section:

Code: Select all

<system.web>   <httpHandlers>        <add verb="*" path="TeeChartImgGen.ashx" 

type="Steema.TeeChart.Web.TeeChartImgGen, TeeChart"/>   </httpHandlers>  /*..content cut for brevity ..*/  

</system.web>
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