473,503 Members | 8,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Chart Object

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
8 5667
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
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
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
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
"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
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
12481
by: Brian Shade | last post by:
Hi all. I am having a bit of a problem with my Perl script and the creation of a chart. I can create the chart and create a new SeriesCollection. I then specify the XValues and the Values parameter...
22
6738
by: PeteCresswell | last post by:
I've been to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mschrt/html/vbobjtitleobject.asp, but still don't have a clue. For example, I've got a chart object namde...
1
11224
by: Steven | last post by:
Hi there, I am trying to export a chart using the Excel11 object from C#. I can properly open workbooks and read cells, but calling Export() on the Chart object throws a COMException ...
9
3059
by: Patrick.O.Ige | last post by:
I have a code below and its a PIE & BAR CHART. The values now are all static but I want to be able to pull the values from a database. Can you guys give me some ideas to do this? Thanks ...
1
7612
by: Robin Tucker | last post by:
Heres and interesting problem: I have a VB.NET program that creates reports via. Word Automation. This all works fine. What I want to do as part of this report generation process is to embed a...
1
1766
by: Marcin | last post by:
Hello all! I have unusual problem with a database form. I have a few forms with charts. I`ve created a module which changes me a chart title. I send an object into the module function and then I...
1
3159
by: Saintor | last post by:
This is for A97 in runtime or MDE mode. My intent was to define a temporary query using the recordsetclone property / filter / orderby. The controlsource of my chart would be based on a grouped...
8
12421
by: dkelly | last post by:
I wish to create a report with a chart, but I want to use a SQL statement as the source of the data, using VBA code in the reports load event I found the following snippet Dim objGraph As...
14
4556
by: Wayne | last post by:
I posted about this problem over 12 months ago and even after Vista SP1 the problem still exists when running an Access database (A2003 and A2007 tested) under Vista. A workaround was suggested by...
0
7194
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7070
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7267
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4993
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3160
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3148
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
372
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.