Click to See Complete Forum and Search --> : Need Help in VB Script


factian
September 11th, 2006, 03:54 AM
Hi All,

I am trying to make line graph in ASP but I got the following error

ExcelChart (0x800A000D)
Type mismatch
/sqlcharts/e/BuildAndShowChart.asp, line 97

Line 97 is here :
Set oExcelChart = Server.CreateObject( "ExcelChart.cExcelChart" )

or any other method to draw a line graph and pie chart.

waiting for help

thanks in advance.

PeejAvery
September 11th, 2006, 10:22 AM
Well, let's start off real basic. Is Microsoft Excel installed on the server? What version of IIS are you running?

factian
September 12th, 2006, 02:02 AM
HI

thanks for your reply. yes MS Excel and IIS 5.0 is installed on server. waiting for your reply.

Thanks again.

hope for the best.

PeejAvery
September 12th, 2006, 09:20 AM
You are using Internet Explorer and not Firefox, right?

Have you tried changing the Privacy and Security settings? Lower them and see if your objects might be being blocked for security reasons.

factian
September 13th, 2006, 02:36 AM
Thanks a lot for your valueable support. I am using Internet Explorer as well as Firefox

I have checked the security and privacy option by lower down them. The problem is little bit resolved. but now the error occurs as

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.
/sqlcharts/e/BuildAndShowChart.asp, line 98


Line 98 is as under :

Set oExcelChart = Server.CreateObject( "ExcelChart.application" )

Thanks again for ur support.

waiting for your kind response.

Regards,

PeejAvery
September 13th, 2006, 09:49 AM
VBScript will not run in Firefox. It is a Microsoft thing and therefore will work on IE based browsers only.

The error Server object, ASP 0177 (0x800401F3) is on the server. Your server is configured to not allow FileSystemObject use.

factian
September 14th, 2006, 12:33 AM
HI

Thanks a lot for ur help. The problem is solved and it is running on both IE and Mozilla FireFox.

I just replaced the line

Set oExcelChart = Server.CreateObject( "ExcelChart.application" )

with

Set oExcelChart = Server.CreateObject( "ExcelChart.cExcelChart" )

and it runs fine

now I am trying to make line graph. please provide some help in this regards.

thanks again.

factian
September 14th, 2006, 01:01 AM
How to configure IIS to allow FileSystemObject ???????????

PeejAvery
September 14th, 2006, 10:08 AM
How to configure IIS to allow FileSystemObject ???????????
If it's working, then FileSystemObject is enabled.

What version of Firefox are you running so that it is able to have Microsoft objects run?

factian
September 18th, 2006, 12:38 AM
If it's working, then FileSystemObject is enabled.

What version of Firefox are you running so that it is able to have Microsoft objects run?

FireFox version is 5.0

Pls guide me in line graph. how can i draw it ??

PeejAvery
September 18th, 2006, 12:57 AM
FireFox version is 5.0
They have only released beta 2.


Pls guide me in line graph. how can i draw it ??
That would be using some sort of control. How do you want to do it?

factian
September 18th, 2006, 02:56 AM
That would be using some sort of control. How do you want to do it?

What type of control ??? Is it possible to draw dynamic line graph in ASP ??

PeejAvery
September 18th, 2006, 09:24 AM
What type of control ??? Is it possible to draw dynamic line graph in ASP ??
I meant ActiveX control. Concerning it being ASP, do you want it moved to that forum? This is a client-side forum and ASP is not.

factian
September 19th, 2006, 02:31 AM
I meant ActiveX control. Concerning it being ASP, do you want it moved to that forum? This is a client-side forum and ASP is not.

yes sure pls guide me how to register activeX control and to use it in ASP ??

PeejAvery
September 19th, 2006, 08:50 AM
yes sure pls guide me how to register activeX control and to use it in ASP ??
No. I don't think you understand. ActiveX and ASP have nothing in common. ActiveX is a control component that can be embedded into HTML. It is a Microsoft component and only compatible with Internet Explorer.

Take a look at this page (http://www.motobit.com/tips/detpg_html-bar-graph-chart/). It explains how to draw a graph using VBScript. Once again, it is limited to Internet Explorer.

You could draw a graph using JavaScript and HTML, but it would not be so "dynamic" as you say. How do you get the values for your graph?

factian
September 19th, 2006, 09:02 AM
No. I don't think you understand. ActiveX and ASP have nothing in common. ActiveX is a control component that can be embedded into HTML. It is a Microsoft component and only compatible with Internet Explorer.

Take a look at this page (http://www.motobit.com/tips/detpg_html-bar-graph-chart/). It explains how to draw a graph using VBScript. Once again, it is limited to Internet Explorer.

You could draw a graph using JavaScript and HTML, but it would not be so "dynamic" as you say. How do you get the values for your graph?


thanks for ur help. The link u send is about baar graph. I want Line graph.

PeejAvery
September 19th, 2006, 09:25 AM
thanks for ur help. The link u send is about baar graph. I want Line graph.
You are correct. I got mixed up on graph terms. I saw lines.

In fact, all I did was search Google. Here (http://www.google.com/search?hl=en&lr=&q=html+line+graph&btnG=Search) is a search that will help you.

factian
September 20th, 2006, 08:52 AM
Thanks a lot dear.

I will inform u about the results.