ASP中用SERVER.CREATEOBJECT()方法引用.ocx控件的问题

llw2003 2003-04-28 07:10:11
.ocx文件已经注册,在用SERVER.CREATEOBJECT建立这个控件的对象实例已成功,且在VS6中编程时,已经有这个控件的方法提示,但接下来一应用他的方法就出错。错误类型:
(0x8000FFFF)。不知怎么回事?谢谢高手指教。
...全文
15 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
本zip文件共有三个文件:1、EtCell.ocx EtCell插件/控件,可以通过 Regsvr32 c:EtCellEtCell.ocx 方法进行注册2、EtCell.cab 开发WEB报表用的CAB包,放在WEB服务器的一个目录下,可以是任何目录,然后在<object...>...object>下指定位置即可,具体请看下面的test.htm例子;3、EtCell.chm EtCell插件/控件得SDK开发文档关于更多内容请到http://www.etcell.com有什么问题可以在BBS上发表,我们会尽快答复:http://www.etcell.com/cgi-bin/index.asp备注:用EtCell报表插件开发WEB程序的一般步骤1、用WinTable制表工具制作报表式样.ET文件(怎么显示数据库、打印报表);例如:制作的报表命名为test.eT,和下面的test.htm、GetDB.asp放到一个WEB目录下;2、编写WEB服务器段程序,例如ASP程序,此程序直接连接数据库,提取数据库的内容;在ASP(PHP、JSP、DLL)程序中用Response把数据库的内容输出为EtCell支持的XML格式;例如:(命名为GetDB.asp)<%id = Request.Form("id")‘下面是输出为EtCell认可的XML格式数据‘和通过ASP输出为动态的Html页面方法一样str = "" & chr(13)str = str & "EtCell文件名.et" & chr(13)str = str & " " & chr(13)str = str & "2.5 " & chr(13)str = str & "" & chr(13)for I=0 to 10 str = str & "" & chr(13) str = str & "货品" & I & "" & chr(13) str = str & "" & I*300+1 & "" & chr(13) str = str & "" & I*2000+1 & "" & chr(13) str = str & "" & chr(13)next str = str & "" & chr(13)str = str & "" & chr(13)Response.write str%>3、编写显示EtCell报表的页面,此页面可以是HTML文件,也可以是ASP页面,或者其他;形式如下:(命名为test.htm)一个利用EtCell显示动态报表的例子4、在IE中输入URL,例如:http://localhost/test.htm,那么就会自动安装EtCell插件(如果浏览端还没有安装EtCell插件),并且显示报表;   5、GetDB.asp的格式完全可以写成下面的格式:<%id = Request.Form("id")‘下面是输出为EtCell认可的XML格式数据‘和通过ASP输出为动态的Html页面方法一样str = "" & chr(13)str = str & "EtCell文件名.et" & chr(13)str = str & " " & chr(13)str = str & "2.5 " & chr(13)Dim rootroot = server.mappath("/DB")filePath = root + "TestDB.mdb"Set Conn = Server.CreateObject("ADODB.Connection")Conn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & filePath‘ 查询数据库Set Rs =CreateObject("ADODB.Recordset")Rs.Open "SELECT * FROM Table where ID=" & id ,Conn,adOpenStaticstr = str & "" & chr(13)do while not Rs.Eof str = str & "" & chr(13) str = str & "" & Rs("Name") & "" & chr(13) str = str & "
" & Rs("Address") & "
" & chr(13) str = str & "" & Rs("School") & "" & chr(13) str = str & "
" & chr(13)Rs.MoveNextloopstr = str & "
" & chr(13)str = str & "
" & chr(13)Response.write str%>
| | ├────────ASP 中如何调用ocx控件.txt | | ├────────ASP 内建对象.txt | | ├────────aspdoc.chm | | ├────────ASP内置对象.txt | | ├────────SDK文档.txt | | ├────────让你的IIS服务器支持JSP.txt | | |@指令参考 | | | ├──────────@ 指令参考.txt | | | ├──────────@CODEPAGE.txt | | | ├──────────@ENABLESESSIONSTATE.txt | | | ├──────────@LANGUAGE.txt | | | ├──────────@LCID.txt | | | ├──────────@TRANSACTION.txt | | | ├──────────Content Schedule 文件.txt | | |Application---在所有用户间共享信息 | | | ├───────────────────────────────────Application Contents 集合.txt | | | ├───────────────────────────────────Application StaticObjects 集合.txt | | | ├───────────────────────────────────Application 对象.txt | | | ├───────────────────────────────────Application 集合.txt | | | ├───────────────────────────────────Application_OnEnd.txt | | | ├───────────────────────────────────Application_OnStart.txt | | | ├───────────────────────────────────Lock.txt | | | ├───────────────────────────────────Unlock.txt | | | ├───────────────────────────────────下载使用说明.htm | | |ASP 参考 | | | ├─────────ActiveX Scripting Host.txt | | | ├─────────HTX 关键字.txt | | | ├─────────Internet Database Connector(Internet 数据库接口)的字段.txt | | | ├─────────Windows Scripting Host 对象模型概述.txt | | | ├─────────Windows Scripting 主机如何使用注册表.txt | | | ├─────────Wscript 对象.txt | | | ├─────────WshArguments 对象.txt | | | ├─────────WshCollection 对象.txt | | | ├─────────WshEnvironment 对象.txt | | | ├─────────WshNetwork 对象.txt | | | ├─────────WshShell 对象.txt | | | ├─────────WshShortcut 对象.txt | | | ├─────────WshSpecialFolders 对象.txt | | | ├─────────WshUrlShortcut 对象.txt | | | ├─────────为 Windows Scripting Host 注册脚本引擎.txt | | | ├─────────为 Windows Scripting Host 编写脚本引擎.txt | | | ├─────────使用 .WSH 文件运行脚本.txt | | | ├─────────使用 Cscript.exe 运行脚本.txt | | | ├─────────使用变量和常量.txt | | | ├─────────使用国际站点.txt | | | ├─────────使用组件和对象.txt | | | ├─────────使用脚本语言.txt | | | ├─────────使用集合.txt | | | ├─────────关于 ASP 应用程序.txt | | | ├─────────创建 .WSH 文件以便记录脚本选项.txt | | | ├─────────创建 ASP 页.txt | | | ├─────────文档约定.txt | | | ├─────────用 Wscript.Exe 运行脚本.txt | | | ├─────────编写过程.txt | | | ├─────────设置对象作用域.txt | | |ASP集合 | | | ├────────SESSION到底是不是COOKIE的子集.txt | | |ObjectContext 对象 | | | ├───────────────────ObjectContext 对象.txt | | | ├───────────────────OnTransactionAbort.txt | | | ├───────────────────OnTransactionCommit.txt | | | ├───────────────────SetAbort.txt | | | ├───────────────────SetComplete.txt | | |Request---接受用户信息 | | | ├───────────────────────BinaryRead.txt | | | ├───────────────────────ClientCertificate.txt | | | ├───────────────────────Cookies.txt | | | ├───────────────────────Form.txt | | | ├───────────────────────QueryString.txt | | | ├───────────────────────ServerVariables.txt | | | ├───────────────────────ServerVariables变量列表.txt | | | ├───────────────────────TotalBytes.txt | | |Response---向客户发送反馈信息 | | | ├──────────────────────────────AddHeader.txt | | | ├──────────────────────────────AppendToLog.txt | | | ├──────────────────────────────BinaryWrite.txt | | | ├──────────────────────────────Buffer.txt | | | ├──────────────────────────────CacheControl.txt | | | ├──────────────────────────────Charset.txt | | | ├──────────────────────────────Clear.txt | | | ├──────────────────────────────ContentType.txt | | | ├──────────────────────────────Cookies.txt | | | ├──────────────────────────────End.txt | | | ├──────────────────────────────Expires.txt | | | ├──────────────────────────────ExpiresAbsolute.txt | | | ├──────────────────────────────Flush.txt | | | ├──────────────────────────────IsClientConnected.txt | | | ├──────────────────────────────PICS.txt | | | ├──────────────────────────────Redirect.txt | | | ├──────────────────────────────Status.txt | | | ├──────────────────────────────Write.txt | | |Server---控制ASP执行环境 | | | ├─────────────────────────CreateObject.txt | | | ├─────────────────────────HTMLEncode.txt | | | ├─────────────────────────MapPath.txt | | | ├─────────────────────────ScriptTimeout.txt | | | ├─────────────────────────ServerVariables变量列表.txt | | | ├─────────────────────────URLEncode.txt | | |Session---存储用户对话信息 | | | ├───────────────────────────Abandon.txt | | | ├───────────────────────────CodePage.txt | | | ├───────────────────────────LCID.txt | | | ├───────────────────────────Session Contents 集合.txt | | | ├───────────────────────────Session StaticObjects 集合.txt | | | ├───────────────────────────Session 对象.txt | | | ├───────────────────────────SessionID.txt | | | ├───────────────────────────Session_OnEnd.txt | | | ├───────────────────────────Session_OnStart.txt | | | ├───────────────────────────Timeout.txt | | |SSI 参考 | | | ├─────────#config.txt | | | ├─────────#config示范.txt | | | ├─────────#echo.txt | | | ├─────────#echo1.txt | | | ├─────────#exec 示范.txt | | | ├─────────#exec.txt | | | ├─────────#flastmod 和#fsize 示范.txt | | | ├─────────#flastmod.txt | | | ├─────────#fsize.txt | | | ├─────────#include 示范.txt | | | ├─────────#include.txt | | | ├─────────SSI指令基本格式:.txt | | | ├─────────XSSI.txt | | | ├─────────什么是SSI?.txt | | | ├─────────如何在我的WEB服务器上配置SSI功能?.txt | | |其他 | | | ├─────asp中常用的文件处理函数.txt | | | ├─────ASP网页访问权的控制.txt | | | ├─────在ASP中利用“正则表达式” 对象实现UBB风格的论坛.txt | | | ├─────在ASP中用“正则表达式对象”来校验数据的合法性.txt | | | ├─────在asp文件中访问flash详细信息.txt | | | ├─────把文件存进access数据库然后取出来供人下载的代码.txt | | | ├─────用ASP编写的俄罗斯方块游戏.txt

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧