Mega Search
23.2 Million


Sign Up

Make a donation  
Using TChart in Intraweb  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb

Hello,

following the suggestions I read on my previous post (https://forums.embarcadero.com/thread.jspa?threadID=110531&tstart=0) about using TChart in Intraweb ("CopyChartToImage" procedure) I developed an application that shows some charts.
Now I would like to install the app on my customer server as an ISAPI dll (that use ISAPI threadpool) and I get an "access denied error".
The same code works fine executed as a Intraweb standalone application.

Here the code I'm working on :

	Chart := TChart.Create(nil);
	Chart.Width := FrangoImage.Width;
	Chart.Height := FrangoImage.Height;

	PieSeries := TPieSeries.Create(Chart);
	try
		Chart.AddSeries(PieSeries);
		Chart.Legend.Visible := false;

		try
			PieSeries.FillSampleValues(20);
			CopyChartToImage(Chart, FrangoImage);
		finally
			PieSeries.Free;
		end;
	finally
		Chart.Free;
	end;

Is there a way to show a chart in a Intraweb ISAPI application ?

Thank you,
Davide

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 15-Jan-2015, at 6:55 AM EST
From: Davide Rubbiani
 
Re: Using TChart in Intraweb  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb
> {quote:title=Davide Rubbiani wrote:}{quote}
> Hi,
> 
> following your sample i'm just finished a very attracting statistical dashboard, full of charts.

Great! :-)
 
> Thank you,

You're welcome

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 21-Jan-2015, at 4:26 AM EST
From: Alexandre Machado
 
Re: Using TChart in Intraweb  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb
Hi,

following your sample i'm just finished a very attracting statistical dashboard, full of charts.

Thank you,
Davide
 
> {quote:title=Alexandre Machado wrote:}{quote}
> Please check this new demo: http://iwdemos.codeplex.com/SourceControl/latest#Atozed Demos/XIV/Delphi/TChart/TChartISAPI/
> 
> It works perfectly in my test environment, as an ISAPI DLL.
> 
> Please let me know if it works for you.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 20-Jan-2015, at 2:25 PM EST
From: Davide Rubbiani
 
Re: Using TChart in Intraweb  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb
Please check this new demo: http://iwdemos.codeplex.com/SourceControl/latest#Atozed Demos/XIV/Delphi/TChart/TChartISAPI/

It works perfectly in my test environment, as an ISAPI DLL.

Please let me know if it works for you.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 19-Jan-2015, at 5:10 AM EST
From: Alexandre Machado
 
Re: Using TChart in Intraweb  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb
> {quote:title=Davide Rubbiani wrote:}{quote}
> Hi,
> I read about a problem in using TChart component in dll : http://steema.com/wp/blog/2014/03/12/teechart-and-gdi-inside-a-dll/
> I mare some tests without any positive result.
> Did anyone find a solution to show TChart in Intraweb application deployed ad ISAPI dll ?
> 
> Thank you,
> Davide

Hi Davide,

I wasn't aware that TChart was limited to GDI+ (didn't have a fall back strategy). That post is almost one year old, and a newer update should have fixed it. Can you please tell me what TChar version are you using?

I'll test it using latest XE7 std TeeChart distro and let you know the results.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 19-Jan-2015, at 3:18 AM EST
From: Alexandre Machado
 
Re: Using TChart in Intraweb  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb
Hi,
I read about a problem in using TChart component in dll : http://steema.com/wp/blog/2014/03/12/teechart-and-gdi-inside-a-dll/
I mare some tests without any positive result.
Did anyone find a solution to show TChart in Intraweb application deployed ad ISAPI dll ?

Thank you,
Davide


> {quote:title=Alexandre Machado wrote:}{quote}
> Hi,
> 
> do you get the access denied error when executing some specific code related to the TChart procedure? 
> 
> Have you seen this document about ISAPI deployment? 
> 
> http://docs.atozed.com/docs.dll/deployment/Deploying%20your%20application%20as%20a%20ISAPI.html
> 
> Seems that your user (virtual application / application pool user) does not have enough privileges.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 18-Jan-2015, at 5:01 AM EST
From: Davide Rubbiani
 
Re: Using TChart in Intraweb  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb
Hi,
the access denied error is shown only when I try to navigare to the form that contains the code to show the chart,
If I remove it the application runs as an ISAPI dll without any problems.

Thanks,
Davide

*>* {quote:title=Alexandre Machado wrote:}{quote}
> Hi,
> 
> do you get the access denied error when executing some specific code related to the TChart procedure? 
> 
> Have you seen this document about ISAPI deployment? 
> 
> http://docs.atozed.com/docs.dll/deployment/Deploying%20your%20application%20as%20a%20ISAPI.html
> 
> Seems that your user (virtual application / application pool user) does not have enough privileges.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Jan-2015, at 7:54 PM EST
From: Davide Rubbiani
 
Re: Using TChart in Intraweb [Edit]  
News Group: embarcadero.public.delphi.thirdpartytools.intraweb
Hi,

do you get the access denied error when executing some specific code related to the TChart procedure? 

Have you seen this document about ISAPI deployment? 

http://docs.atozed.com/docs.dll/deployment/Deploying%20your%20application%20as%20a%20ISAPI.html

Seems that your user (virtual application / application pool user) does not have enough privileges.

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 15-Jan-2015, at 10:02 AM EST
From: Alexandre Machado