难道没人会处理图片???
下面这个网页可以正常显示dwf文件(利用Autodesk Express Viewer工具)
cad_view.asp
<%
if Request.QueryString ("pipe_num")<>"" then
pipe_num=Request.QueryString ("pipe_num")
else
pipe_num=543
end if
%>
<html>
<body>
<tr height="90%">
<td colspan="10" align="center">
<object id = "viewer"
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
codebase="http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab" width="100%" height="100%" >
<param name = "Src" value="images/<%=pipe_num%>.dwf">
</td>
</tr>
<br>
</body>
</html>
改进版?还是不行? <%
dim s,dwf,num
if Request.QueryString ( "pipe_num ") < > " " then
num=Request.QueryString ( "pipe_num ")
else
num=543
end if
set connGraph=server.CreateObject( "ADODB.connection ")
conngraph.ConnectionString =session( "connection_string ")
conngraph.Open
set rec=server.createobject( "ADODB.recordset ")
strsql= "select * from pipe_map where pipe_num=' "&num& "' "
rec.open strsql,connGraph,1,1
if rec.RecordCount=0 then
if len(Request.QueryString( "pipe_num ")) <=4 then
rec.Close
rec.Open "select * from pipe_map where pipe_num='暂无管段图' ",connGraph,1,1
else
rec.Close
rec.Open "select * from pipe_map where pipe_num='暂无单卡图' ",connGraph,1,1
end if
end if
'Response.ContentType = "image/dwf "
dwf=rec( "pipe_map ").GetChunk(750000)
'Response.Write dwf
'Response.Write
set rec=nothing
set connGraph=nothing
% > >
<html >
<body >
<br >
<tr height= "90% " >
<td colspan= "10 " align= "center " >
<object id = "viewer "
classid= "clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF "
codebase= "http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab " width= "100% " height= "100% " >
<param name = "Src " value= "<%=dwf%> " >
</td >
</tr >
<br >
</body >
</html >
cad_view.asp
<%
if Request.QueryString ("pipe_num")<>"" then
pipe_num=Request.QueryString ("pipe_num")
else
pipe_num=543
end if
%>
<html>
<body>
<tr height="90%">
<td colspan="10" align="center">
<object id = "viewer"
classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"
codebase="http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab" width="100%" height="100%" >
<param name = "Src" value="images/<%=pipe_num%>.dwf">
</td>
</tr>
<br>
</body>
</html>
改进版?还是不行? <%
dim s,dwf,num
if Request.QueryString ( "pipe_num ") < > " " then
num=Request.QueryString ( "pipe_num ")
else
num=543
end if
set connGraph=server.CreateObject( "ADODB.connection ")
conngraph.ConnectionString =session( "connection_string ")
conngraph.Open
set rec=server.createobject( "ADODB.recordset ")
strsql= "select * from pipe_map where pipe_num=' "&num& "' "
rec.open strsql,connGraph,1,1
if rec.RecordCount=0 then
if len(Request.QueryString( "pipe_num ")) <=4 then
rec.Close
rec.Open "select * from pipe_map where pipe_num='暂无管段图' ",connGraph,1,1
else
rec.Close
rec.Open "select * from pipe_map where pipe_num='暂无单卡图' ",connGraph,1,1
end if
end if
'Response.ContentType = "image/dwf "
dwf=rec( "pipe_map ").GetChunk(750000)
'Response.Write dwf
'Response.Write
set rec=nothing
set connGraph=nothing
% > >
<html >
<body >
<br >
<tr height= "90% " >
<td colspan= "10 " align= "center " >
<object id = "viewer "
classid= "clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF "
codebase= "http://www.autodesk.com/global/expressviewer/installer/ExpressViewerSetup.cab " width= "100% " height= "100% " >
<param name = "Src " value= "<%=dwf%> " >
</td >
</tr >
<br >
</body >
</html >
...全文
相关推荐
python 图片二值化处理(处理后为纯黑白的图片)
point()方法接受两个参数,第一个是一个映射表,第二个是处理模式,在这里使用'1'表示二值化模式。7. 保存处理后的图片:使用save()方法保存二值化处理后的图片,以便进行后续的分析或处理。
C# 图片处理 读取图片流
在C#编程中,处理图片是一项常见的任务,特别是在开发图形用户界面或进行图像分析的应用中。本篇将详细探讨如何在C#中读取图片流,以便进行图像处理操作。首先,我们需要理解“图片流”的概念。
java高清处理图片
### Java高清处理图片:利用ImageMagick提升图片质量和效率#### 背景与需求在实际项目开发中,图片处理是一项常见的需求,包括但不限于图片的压缩、尺寸调整以及添加水印等操作。
VC图片处理 VC图片处理
以下是对VC图片处理的一些关键知识点的详细解释:1. **Windows API 图片处理**: - **BITMAPINFOHEADER** 结构:用于描述位图信息,包括宽度、高度、颜色深度等。
java对图片进行处理
在Java编程语言中,处理图片是一项常见的任务,涵盖了多种操作,如获取图片的宽度和高度、缩放图片、裁剪图像以及添加文字或图片水印。以下是对这些知识点的详细说明:1.


