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
> {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
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.
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.
> {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.
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.
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.
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.