帮帮忙吧,有没有人用过这个?

lym230510 2004-04-20 08:02:57
ExpressViewerSetup_CHS.exe安装完以后用来显示dwf格式的文件
http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=3523518
我要实现从数据库里把dwf格式的文件读出来进行显示
我的方法页面a.asp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>图</title>
</head>
<body>
<OBJECT id=AdViewer1 style="WIDTH: 1000px; HEIGHT: 600px"
classid=clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF VIEWASTEXT>
<PARAM NAME="_cx" VALUE="17595">
<PARAM NAME="_cy" VALUE="13864">
<PARAM NAME="BackColor" VALUE="7895160">
<PARAM NAME="EmbedDoc" VALUE="0">
<PARAM NAME="Src" VALUE="showimg.asp">
<PARAM NAME="ViewerParams" VALUE="">
</OBJECT>
</body>
</html>
----------------------------------------------------------
showimg.asp页面
cn是连接的数据库
-----------------------------------------------------
<%Set objRs=Server.CreateObject("ADODB.Recordset")
strsql="select * from GE04 WHERE TJMC='g11'"
objRs.open strsql,cn,1,1
Response.ContentType="*/dwf"
Response.BinaryWrite objRs("CJXDT").GetChunk(7500000)
objRs.close
set objRs=nothing
set cn=nothing
%>
数据能够读出来就是不能够显示
Response.ContentType="*/dwf"这里应该怎么填写??
我这种方法能够实现吗?
谢谢帮助!!!非常着急----在线等!!
...全文
36 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
lym230510 2004-04-22
  • 打赏
  • 举报
回复
用了这个whip4 4.0版本好用ok
<OBJECT id=DWhip1 style="LEFT: 0px; TOP: 0px" height=619 width=1004 classid="clsid:B2BE75F3-9197-11CF-ABF4-08000996E931" VIEWASTEXT>
<PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="26564">
<PARAM NAME="_ExtentY" VALUE="16378">
<PARAM NAME="_StockProps" VALUE="161">
<PARAM NAME="BorderStyle" VALUE="0">
<PARAM NAME="Appearance" VALUE="0">
<PARAM NAME="Filename" VALUE="showimg.asp?TableName=<%=TableName%>&LeftField=<%=LeftField%>&FValue=<%=Fvalue%><%=strCHDI%>">
<PARAM NAME="View" VALUE="">
<PARAM NAME="namedview" VALUE="">
<PARAM NAME="userinterface" VALUE="On">
<PARAM NAME="layerson" VALUE="">
<PARAM NAME="layersoff" VALUE="">
<PARAM NAME="LocalTmpFilename" VALUE="">
<PARAM NAME="GreekImages" VALUE="-1">
<PARAM NAME="HighlightUrls" VALUE="0">
<PARAM NAME="LoadStreamAutomatically" VALUE="-1">
<PARAM NAME="MergeDwf" VALUE="0">
<PARAM NAME="ForceArrowKeys" VALUE="0">
<PARAM NAME="ProxyAccessType" VALUE="0">
<PARAM NAME="CursorMode" VALUE="0">
<PARAM NAME="dropfile" VALUE=""></OBJECT>
lym230510 2004-04-22
  • 打赏
  • 举报
回复
thank you everyone!!
zhengxianping 2004-04-22
  • 打赏
  • 举报
回复
发错了应该是压缩比,不好意思!!
zhengxianping 2004-04-22
  • 打赏
  • 举报
回复
我用的是whip4 4.0版本的÷直接嵌入控件就可以了。
你看看他的帮助应该是不支持。可能跟你的转成dwf的格式有关系!!
lym230510 2004-04-21
  • 打赏
  • 举报
回复
gjd111686(数字金刚) 你好非常感谢!!
但是
<%
str="Provider=oraOLEDB.ORACLE;Data Source=HGIS;User ID=KFGH;Password=KFGH;"
set conn=server.CreateObject("adodb.connection")
conn.connectionstring=str
on error resume next
conn.open
if err.number<>0 then
response.Write(err.description)
end if

set objRs=Server.CreateObject("ADODB.Recordset")
strsql="select * from GE04 WHERE TJMC='g11'"
objRs.open strsql,conn,1,1

%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page 1</title>
</head>

<body>
<table width="100%" height="60" border="1" cellpadding="0" cellspacing="0">
<tr>

<td>
<%
if not objrs.eof then
Response.ContentType="model/vnd.dwf"
Response.BinaryWrite objRs("CJXDT").GetChunk(7500000)
end if %>
</td>
</tr>
<%
set objrs=nothing
set conn=nothing%>
</table>
</body>
</html>
但是出现一下错误:::
文件类型不受支持 [CAdEPlotDocument::LoadStream : 595]
我用word或图片都这么用,但是为什么这个不能用呢?帮帮忙!!
非常感谢!!!
gjd111686 2004-04-20
  • 打赏
  • 举报
回复
其实注册表中HKEY_CLASSES_ROOT下找.dwf是可以查到Content Type类型的[前提是文件已经关联:就是用应用程序已经打开过一次]
gjd111686 2004-04-20
  • 打赏
  • 举报
回复
application/dwf

28,391

社区成员

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

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