Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript codes in window XP professor

Status
Not open for further replies.

fairfaxVB

Programmer
Nov 3, 2005
46
US
Hi Friends,
I have a codes from this web.
It works in windows 2000 professional. But it does not work in window XP professional and got an error message " borrower does not support activeX" however, we have same version IE brower(6,0,2800,1106) in 2 PC. It is only have different operating system.
The codes is still not working even I turn off MS anti spy.
How to fix this issue?
Any idea?
Thanks for help,
FairfaxVB
******source codes
<%@ Language=VBScript %>
<HTML>
<head><title>calls chart example</title></head>
<STRONG><CENTER>Calls Per Day </CENTER></STRONG>

<BODY>
<object id=ChartSpace1 classid=CLSID:0002E500-0000-0000-C000-000000000046 style="width:100%;height:480"></object>
<object id=Spreadsheet1 classid=CLSID:0002E510-0000-0000-C000-000000000046 style="width:100%;height:480"></object>

<script language=vbs>
Sub Window_OnLoad()

class
Dim oSheet
Set oSheet = Spreadsheet1.ActiveSheet
oSheet.Cells.Clear
oSheet.Range("A2:A10").Value = Array("6/6/2005","6/7/2005","6/8/2005","6/9/2005","6/10/2005","6/11/2005","6/12/2005","6/13/2005","6/14/2005")
oSheet.Range("B1:B10").Value = Array("OBC", 0.3,0.07, 0.1,0.4,0.08,0.2,0.2,0.5,2.5)

Dim oChart
ChartSpace1.Clear
Set oChart = ChartSpace1.Charts.Add

' Set the Spreadsheet component as the data source for the chart
ChartSpace1.DataSource = Spreadsheet1

dim c
set c = ChartSpace1.Constants

'Add the data to the chart and set the series names
dim oSeries

for i=1 to 1
Set oSeries = oChart.SeriesCollection.Add
oSeries.SetData c.chDimValues, 0, oSheet.Range(oSheet.Cells(2,1), oSheet.Cells(10,1)).Address
oSeries.SetData c.chDimSeriesNames, 0, oSheet.Cells(1,1).Address
next

oChart.SetData c.chDimCategories, 0, "a2:a10"

oChart.Axes(c.chAxisPositionLeft).NumberFormat = "0"
oChart.Axes(c.chAxisPositionLeft).MajorUnit = 0.5

End Sub
</script>


</BODY>
</HTML>
 
got an error message " borrower does not support activeX"

you should check the internet settings (control panel > internet settings) and make usre that ACTIVE X is allow on the XP machines.

The users may have not wanted it this way...to begin with.


--> It's a bird! It's a plane! No, it's an OS update patch! Ahh!! <--
 
Hi Miggd and friends,
Thanks for your help.
However, Both borrow setting is same and allows to run ACTIVE X. We already checked this issue.
Other differents is that PC installed a software of MS beta anti-spy.
Any idea?

Fairfax VB
 
Did you check the clsid's? Maybe, your XP doesn't have the same version of Office as your Y2K.

I have Office 2003 and I didn't find any of the CLSID:0002E500-0000-0000-C000-000000000046 or CLSID:0002E510-0000-0000-C000-000000000046.
 


Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!

Hi hallymaster

Your found is correct answer. But how can we find a solution?
I try to add these 2 clsid into regedit system. it does not work.does any person know which new clsid to match function of these old clsid in office 2000?

I have a Office 2003 and I didn't find any of the CLSID:0002E500-0000-0000-C000-000000000046 or CLSID:0002E510-0000-0000-C000-000000000046.

Thank hallymaster
changNY

 
Hi hallymaster and changNY,
Thanks for your email.
Actually, chart objects(ChartSpace1,Spreadsheet1)Office2003 should be cover these 2 object of chart in office 2000. I do not know how to find a new name and clsin number for these object in office 2003.
Microsoft always forces users to upgrade ms software.
any suggestion for this issue?

FairfaxVB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top