473,402 Members | 2,053 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

Object doesn't support this property or method

I created a CAB file for a 3rd party control (StockChartX) it using
CABARC.exe that comes from Microsoft SDK.
In the CAB file I included the StockChartX.ocx and StockChartX.INF.
Then, I signed the CAB file using Verisign. I also created the LPK file for
it (using LKPTool.exe).
On my web page, I include the CAB file, and when I bring up that web page,
it asks to download it, and I download it.
After the control is downloaded, I got an error "Object doesn't support this
property or method : StockChartX1.ChartBackColor".
I have a VB application that also uses the control, and after I download the
StockChartX control from the web page, I can use that control on my VB
application, just not on the web page.
When I install the ACtiveX control from the 3rd party CD and use it on my
website, instead of using the downloaded .OCX file, besides getting the
mesage "an ActiveX control on this page might be unsafe to interact with
other parts of the page, I do not get the error "Object doesn't support this
property or method".
Do you have any suggestion why the control does not work on the website ?

Here is my ASP page:

<OBJECT CLASSID="clsid:5220cb21-c88d-11cf-b347-00aa00a28331"
id="Microsoft_Licensed_Class_Manager_1_0"1 VIEWASTEXT><PARAM
NAME="LPKPath" VALUE="StockChartx.lpk"></OBJECT>

<OBJECT id="stockchartx1"
classid="clsid:89D9AAAF-DC4F-4F72-ACF3-D2EDB8644A44" width = 1000 height =
500
codeBase="stockchartx.cab#version=5,5,5,1"
VIEWASTEXT>
</OBJECT>
</P>
<script language="vbscript">
StockChartX1.ChartBackColor = 0 'RGB(0, 0, 0) --> error here
:
</script>

This is the StockChartX.INF file:
;INF file for StockChartX.ocx
;DestDir can be 10 for Windows directory, 11 for Windows\System(32)
directory, or left blank for the Occache directory.

[version]
signature="$CHICAGO$"
AdvancedINF=2.0

[DefaultInstall]
CopyFiles=install.files
RegisterOCXs=RegisterFiles
AddReg=AddToRegistry

[RInstallApplicationFiles]
CopyFiles=install.files
RegisterOCXs=RegisterFiles
AddReg=AddToRegistry
[DestinationDirs]
install.files=11

[SourceDisksNames]
1=%DiskName%,StockChartX.CAB,1

[Add.Code]
StockChartX.ocx=StockChartX.ocx
objsafe.tlb=objsafe.tlb
msvbvm60.dll=msvbvm60.dll
OLEAUT32.DLL=OLEAUT32.DLL
OLEPRO32.DLL=OLEPRO32.DLL
ASYCFILT.DLL=ASYCFILT.DLL
STDOLE2.TLB=STDOLE2.TLB
COMCAT.DLL=COMCAT.DLL

[install.files]
StockChartX.ocx=StockChartX.ocx
objsafe.tlb=objsafe.tlb

[SourceDisksFiles]
StockChartX.ocx=1
objsafe.tlb=1

[StockChartX.ocx]
file-win32-x86=thiscab
RegisterServer=yes
clsid={89D9AAAF-DC4F-4F72-ACF3-D2EDB8644A44}
DestDir=11
FileVersion=5,5,5,1

[objsafe.tlb]
file-win32-x86=thiscab
RegisterServer=no
DestDir=11
FileVersion=0,0,0,0

[msvbvm60.dll]
hook=msvbvm60.cab_Installer
FileVersion=6,0,96,90

[msvbvm60.cab_Installer]
file-win32-x86=vbrun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[OLEAUT32.DLL]
hook=OLEAUT32.cab_Installer
FileVersion=2,40,4275,1

[OLEAUT32.cab_Installer]
file-win32-x86=vbrun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[OLEPRO32.DLL]
hook=OLEPRO32.cab_Installer
FileVersion=5,0,4275,1

[OLEPRO32.cab_Installer]
file-win32-x86=vbrun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[ASYCFILT.DLL]
hook=ASYCFILT.cab_Installer
FileVersion=2,40,4275,1

[ASYCFILT.cab_Installer]
file-win32-x86=vbrun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[STDOLE2.TLB]
hook=STDOLE2.cab_Installer
FileVersion=2,40,4275,1

[STDOLE2.cab_Installer]
file-win32-x86=vbrun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[COMCAT.DLL]
hook=COMCAT.cab_Installer
FileVersion=4,71,1460,1

[COMCAT.cab_Installer]
file-win32-x86=vbrun60.cab
run=%EXTRACT_DIR%\VBRun60.exe

[Setup Hooks]
AddToRegHook=AddToRegHook

[AddToRegHook]
InfSection=DefaultInstall2

[DefaultInstall2]
AddReg=AddToRegistry

[AddToRegistry]
HKLM,"SOFTWARE\Classes\CLSID\{89D9AAAF-DC4F-4F72-ACF3-D2EDB8644A44}\Implemented
Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"
HKLM,"SOFTWARE\Classes\CLSID\{89D9AAAF-DC4F-4F72-ACF3-D2EDB8644A44}\Implemented
Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"
HKCR,"Licenses",,,"Licensing: Copying the keys may be a violation of
established copyrights."

[RegisterFiles]
%11%\StockChartX.ocx
Thank you.
Mar 15 '06 #1
0 4515

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Matt | last post by:
I tried to display all html control types in the form. But it has run time error "object doesn't support this property or method" on document.write(obj.type); Even I do document.write('hello...
2
by: Olaf | last post by:
I have a frameset page witch contains the myFuc() function. The function is accessed from a page in one of the frames in the frameset. An example is shown below. <input...
3
by: news.onetel.net.uk | last post by:
I and my friend Karl have spent literally all day trying to find out what is causing my error but we are zapped of any further functionality :) I have a form that adds news records. You select...
54
by: tshad | last post by:
I have a function: function SalaryDisplay(me) { var salaryMinLabel = document.getElementById("SalaryMin"); salaryMinLabel.value = 200; alert("after setting salaryMinLabel = " +...
7
by: stellstarin | last post by:
hi all, I have a HTML page with two forms. While trying to add a hidden element in a first form by the default javascript function, the error message 'object does not support this property or...
5
by: John Olbert | last post by:
Subject: Error is Object doesn't support this property or method I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX Control. I get the following runtime error-- "Object...
8
by: Kevin Blount | last post by:
I'm tyring to access an object created by using a method from a third party API. The documentation tells me what object should be return, and the properties of that object, but when I try and...
0
ADezii
by: ADezii | last post by:
When you create an ADO Recordset, you should have some idea as to what functionality the Recordset does/does not provide. Some critical questions may, and should, be: Can I add New Records to the...
9
by: Peter Webb | last post by:
I want to animate one object moving in front of another. I cannot re-render the background as the object moves, as it would be extremely time consuming. This is what I would like to do. I draw...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.