By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,679 Members | 2,469 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,679 IT Pros & Developers. It's quick & easy.

Chart Object

P: n/a
Friends,

I have been migrating ASP applications from IIS4.0/NT4.0 to
IIS5.0/W2K. All the applications working perfectly except one. This
particular application will make use of asp chart object.


Sub BuildGraph(rate(), name,color,chartHight,chartWidth)
ctBar = 5
cNone = 0
cGradient = 6
'***** Delete old jpg's ****

ON error resume next

rem ************************************************** ********************
rem * Instantiate the Chart component
rem ************************************************** ********************
Set Chart = Server.CreateObject ("ASPChart.Chart")
Chart.AddSeries (ctBar)
Chart.VertAxisMax= 100
Chart.VertAxisMin = 90
for i = 1 to 12
if rate(i) <> 0 then
Chart.AddValue rate(i), MonthName(i,TRUE) , color
end if
Next
Chart.BarStyle = cGradient
Chart.LegendVisible = false
Chart.AddAxisLabel 2,name
rem ************************************************** ********************
rem * Set the PanelColor, remove the OuterBevel
rem ************************************************** ********************
Chart.PanelColor = vbWhite
Chart.BevelOuter = cNone
Chart.ChartBGColor = vbWhite
rem ************************************************** ********************
rem * Set the Width and Height of the image
rem ************************************************** ********************
Chart.Height = chartHight '100
Chart.Width = chartWidth '300
rem ************************************************** ********************
rem * Set the filename, save the image and write the image tag
rem ************************************************** ********************
rem dir_path value "d:\inetpub\download"
Chart.FileName = Application("dir_path")& Session.SessionID & name &
".jpg"
Chart.SaveChart
rem ************************************************** ********************
rem * Destroy the object
rem ************************************************** ********************
Set Chart = nothing
End sub

This code is in functions_share.asp

The above sub being called from the xyz.asp (located in the same
folder as "download" folder is) as following:
If Session("GRAPH_type")="abc" or Session("GRAPH_type")="def" then
Call BuildGraph(filled_rate,"Chart Name",vbBlue,100,300)

<td><img src="./download/<%=Session.SessionID%>Chart%20Name.jpg"></td>
The problem with the above blocks of codes is " JPG are not created
!". I have given enough permissions to write to "download" folder.
What am I missing here.

Any help in this direction appreciated...
TIA
KP
Jul 19 '05 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Error message when use it is
This evaluation component has expired.
thanks
-----Original Message-----
Friends,

I have been migrating ASP applications from IIS4.0/NT4.0 toIIS5.0/W2K. All the applications working perfectly except one. Thisparticular application will make use of asp chart object.


Sub BuildGraph(rate(), name,color,chartHight,chartWidth)
ctBar = 5
cNone = 0
cGradient = 6
'***** Delete old jpg's ****

ON error resume next

rem ************************************************** *********
*********** rem * Instantiate the Chart component
rem ************************************************** *********
*********** Set Chart = Server.CreateObject ("ASPChart.Chart")
Chart.AddSeries (ctBar)
Chart.VertAxisMax= 100
Chart.VertAxisMin = 90
for i = 1 to 12
if rate(i) <> 0 then
Chart.AddValue rate(i), MonthName (i,TRUE) , color end if
Next
Chart.BarStyle = cGradient
Chart.LegendVisible = false
Chart.AddAxisLabel 2,name
rem ************************************************** *********
*********** rem * Set the PanelColor, remove the OuterBevel
rem ************************************************** *********
*********** Chart.PanelColor = vbWhite
Chart.BevelOuter = cNone
Chart.ChartBGColor = vbWhite
rem ************************************************** *********
*********** rem * Set the Width and Height of the image
rem ************************************************** *********
*********** Chart.Height = chartHight '100
Chart.Width = chartWidth '300
rem ************************************************** *********
*********** rem * Set the filename, save the image and write the image tag rem ************************************************** *********
*********** rem dir_path value "d:\inetpub\download"
Chart.FileName = Application("dir_path")& Session.SessionID & name &".jpg"
Chart.SaveChart
rem ************************************************** *********
*********** rem * Destroy the object
rem ************************************************** *********
*********** Set Chart = nothing
End sub

This code is in functions_share.asp

The above sub being called from the xyz.asp (located in the samefolder as "download" folder is) as following:
If Session("GRAPH_type")="abc" or Session ("GRAPH_type")="def" then Call BuildGraph(filled_rate,"Chart Name",vbBlue,100,300)
<td><img src="./download/<% =Session.SessionID%>Chart%20Name.jpg"></td>

The problem with the above blocks of codes is " JPG are not created!". I have given enough permissions to write to "download" folder.What am I missing here.

Any help in this direction appreciated...
TIA
KP
.

Jul 19 '05 #2

P: n/a
Well - there you go, what more do you need?

Reinstall it with the relevant purchased license keys or check that the
license key applied during use of the component is valid.

Chris.

"Prabhakar" <pr*********@hotmail.com> wrote in message
news:08****************************@phx.gbl...
Error message when use it is
This evaluation component has expired.
thanks
-----Original Message-----
Friends,

I have been migrating ASP applications from IIS4.0/NT4.0 toIIS5.0/W2K. All the applications working perfectly except one. Thisparticular application will make use of asp chart object.


Sub BuildGraph(rate(), name,color,chartHight,chartWidth)
ctBar = 5
cNone = 0
cGradient = 6
'***** Delete old jpg's ****

ON error resume next

rem ************************************************** *********
*********** rem * Instantiate the Chart component
rem ************************************************** *********
*********** Set Chart = Server.CreateObject ("ASPChart.Chart")
Chart.AddSeries (ctBar)
Chart.VertAxisMax= 100
Chart.VertAxisMin = 90
for i = 1 to 12
if rate(i) <> 0 then
Chart.AddValue rate(i), MonthName (i,TRUE) , color end if
Next
Chart.BarStyle = cGradient
Chart.LegendVisible = false
Chart.AddAxisLabel 2,name
rem ************************************************** *********
*********** rem * Set the PanelColor, remove the OuterBevel
rem ************************************************** *********
*********** Chart.PanelColor = vbWhite
Chart.BevelOuter = cNone
Chart.ChartBGColor = vbWhite
rem ************************************************** *********
*********** rem * Set the Width and Height of the image
rem ************************************************** *********
*********** Chart.Height = chartHight '100
Chart.Width = chartWidth '300
rem ************************************************** *********
*********** rem * Set the filename, save the image and write the image tag rem ************************************************** *********
*********** rem dir_path value "d:\inetpub\download"
Chart.FileName = Application("dir_path")& Session.SessionID & name &".jpg"
Chart.SaveChart
rem ************************************************** *********
*********** rem * Destroy the object
rem ************************************************** *********
*********** Set Chart = nothing
End sub

This code is in functions_share.asp

The above sub being called from the xyz.asp (located in the samefolder as "download" folder is) as following:
If Session("GRAPH_type")="abc" or Session ("GRAPH_type")="def" then Call BuildGraph(filled_rate,"Chart Name",vbBlue,100,300)
<td><img src="./download/<% =Session.SessionID%>Chart%20Name.jpg"></td>

The problem with the above blocks of codes is " JPG are not created!". I have given enough permissions to write to "download" folder.What am I missing here.

Any help in this direction appreciated...
TIA
KP
.

Jul 19 '05 #3

P: n/a
Hmm , you may be out of luck unless you can find the original install set or
get ServerObjects to help you (unlikely with unsupported legacy components).

http://www.support.hostinguk.net/com...s/aspchart.htm

Chris.

"Chris Barber" <ch***@blue-canoe.co.uk.NOSPAM> wrote in message
news:ud**************@TK2MSFTNGP10.phx.gbl...
Well - there you go, what more do you need?

Reinstall it with the relevant purchased license keys or check that the
license key applied during use of the component is valid.

Chris.

"Prabhakar" <pr*********@hotmail.com> wrote in message
news:08****************************@phx.gbl...
Error message when use it is
This evaluation component has expired.
thanks
-----Original Message-----
Friends,

I have been migrating ASP applications from IIS4.0/NT4.0 toIIS5.0/W2K. All the applications working perfectly except one. Thisparticular application will make use of asp chart object.


Sub BuildGraph(rate(), name,color,chartHight,chartWidth)
ctBar = 5
cNone = 0
cGradient = 6
'***** Delete old jpg's ****

ON error resume next

rem ************************************************** *********
*********** rem * Instantiate the Chart component
rem ************************************************** *********
*********** Set Chart = Server.CreateObject ("ASPChart.Chart")
Chart.AddSeries (ctBar)
Chart.VertAxisMax= 100
Chart.VertAxisMin = 90
for i = 1 to 12
if rate(i) <> 0 then
Chart.AddValue rate(i), MonthName (i,TRUE) , color end if
Next
Chart.BarStyle = cGradient
Chart.LegendVisible = false
Chart.AddAxisLabel 2,name
rem ************************************************** *********
*********** rem * Set the PanelColor, remove the OuterBevel
rem ************************************************** *********
*********** Chart.PanelColor = vbWhite
Chart.BevelOuter = cNone
Chart.ChartBGColor = vbWhite
rem ************************************************** *********
*********** rem * Set the Width and Height of the image
rem ************************************************** *********
*********** Chart.Height = chartHight '100
Chart.Width = chartWidth '300
rem ************************************************** *********
*********** rem * Set the filename, save the image and write the image tag rem ************************************************** *********
*********** rem dir_path value "d:\inetpub\download"
Chart.FileName = Application("dir_path")& Session.SessionID & name &".jpg"
Chart.SaveChart
rem ************************************************** *********
*********** rem * Destroy the object
rem ************************************************** *********
*********** Set Chart = nothing
End sub

This code is in functions_share.asp

The above sub being called from the xyz.asp (located in the samefolder as "download" folder is) as following:
If Session("GRAPH_type")="abc" or Session ("GRAPH_type")="def" then Call BuildGraph(filled_rate,"Chart Name",vbBlue,100,300)
<td><img src="./download/<% =Session.SessionID%>Chart%20Name.jpg"></td>

The problem with the above blocks of codes is " JPG are not created!". I have given enough permissions to write to "download" folder.What am I missing here.

Any help in this direction appreciated...
TIA
KP
.


Jul 19 '05 #4

P: n/a
Hi Chris,

Is there any alternative for building the chart on fly.
Because all my efforts to use the aspchart.dll are
failed. Are there any third party software that I can
make use of to build this graph in jpeg format?

thanks in advance

Prabhakar
Jul 19 '05 #5

P: n/a
"Prabhakar" <pr*********@hotmail.com> wrote in message
news:01****************************@phx.gbl...
Hi Chris,

Is there any alternative for building the chart on fly.
Because all my efforts to use the aspchart.dll are
failed. Are there any third party software that I can
make use of to build this graph in jpeg format?

thanks in advance

Prabhakar


Is MS Office 2000/XP installed on the Server. If so, you may want to
investigate Office Web Components (OWC). Here's a list of articles about
charting in ASP.

http://www.4guysfromrolla.com/webtec...e/Graphing.asp

Note: If you have Office XP, a very exciting new feature of OWC is the
ability to stream the gif content directly to the Response object,
eliminating the need to manage the temporary image files. The
documentation for OWC is somewhat sparse so if you decide to use this
approach, please feel free to post follow-up questions here.

HTH
-Chris
Jul 19 '05 #6

P: n/a
MS-Office 2000 is installed on the server, but not Office
XP.
thanks

-----Original Message-----
"Prabhakar" <pr*********@hotmail.com> wrote in message
news:01****************************@phx.gbl...
Hi Chris,

Is there any alternative for building the chart on fly.
Because all my efforts to use the aspchart.dll are
failed. Are there any third party software that I can
make use of to build this graph in jpeg format?

thanks in advance

Prabhakar
Is MS Office 2000/XP installed on the Server. If so, you

may want toinvestigate Office Web Components (OWC). Here's a list of articles aboutcharting in ASP.

http://www.4guysfromrolla.com/webtec...ore/Graphing.a sp
Note: If you have Office XP, a very exciting new feature of OWC is theability to stream the gif content directly to the Response object,eliminating the need to manage the temporary image files. Thedocumentation for OWC is somewhat sparse so if you decide to use thisapproach, please feel free to post follow-up questions here.
HTH
-Chris
.

Jul 19 '05 #7

P: n/a
"Prabhakar" <pr*********@hotmail.com> wrote in message
news:17****************************@phx.gbl...
MS-Office 2000 is installed on the server, but not Office
XP.
thanks

-----Original Message-----
"Prabhakar" <pr*********@hotmail.com> wrote in message
news:01****************************@phx.gbl...
Hi Chris,

Is there any alternative for building the chart on fly.
Because all my efforts to use the aspchart.dll are
failed. Are there any third party software that I can
make use of to build this graph in jpeg format?

thanks in advance

Prabhakar


Is MS Office 2000/XP installed on the Server. If so, you

may want to
investigate Office Web Components (OWC). Here's a list of

articles about
charting in ASP.

http://www.4guysfromrolla.com/webtec...ore/Graphing.a

sp

Note: If you have Office XP, a very exciting new feature

of OWC is the
ability to stream the gif content directly to the

Response object,
eliminating the need to manage the temporary image files.

The
documentation for OWC is somewhat sparse so if you decide

to use this
approach, please feel free to post follow-up questions

here.

HTH
-Chris


Office 2000 is fine. In fact the articles listed in that link reference
OWC for Office 2000.
Jul 19 '05 #8

P: n/a
ChartDirector is pretty good (or any other third part chart ASP component).

ChartDirector:
http://www.advsofteng.com/

Since ASPChart is now unsupported you may (with a bit of pleading) be able
to wangle a FOC license from ServerObjects - have you contacted them?

Chris.

"Prabhakar" <pr*********@hotmail.com> wrote in message
news:01****************************@phx.gbl...
Hi Chris,

Is there any alternative for building the chart on fly.
Because all my efforts to use the aspchart.dll are
failed. Are there any third party software that I can
make use of to build this graph in jpeg format?

thanks in advance

Prabhakar
Jul 19 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.