📄 105154.html
字号:
<html><head><title>什么是ActiveDocument(OLE文档对象)</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="Keywords" content="什么是ActiveDocument(OLE文档对象)">
<meta name="description" content="什么是ActiveDocument(OLE文档对象)">
<style type="text/css">
<!--
.style2 {font-size: 14px}
-->
</style>
<link href="105154_files/Skin1.css" rel="stylesheet" type="text/css"></head><body leftmargin="0" topmargin="0">
<table class="top_Channel" style="" align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody><tr>
<td colspan="2" align="left"> | <a class="Channel2" href="http://www.itcomputer.com.cn/Index.html">首页</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Article/Index.html" target="_self">电脑常识</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Programs/Index.html" target="_self">程序设计</a> | <a class="Channel" href="http://www.itcomputer.com.cn/system/Index.html" target="_self">操作系统</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Network/Index.html" target="_self">语法</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Virus/Index.html" target="_self">病毒安全</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Soft/Index.html" target="_self">软件教程</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Hardware/Index.html" target="_self">硬件</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Database/Index.html" target="_self">数据库</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Multimedia/Index.html" target="_self">多媒体</a> | <a class="Channel" href="http://www.itcomputer.com.cn/Authenticates/Index.html" target="_self">认证</a> | <a class="Channel" href="http://www.itcomputer.com.cn/download/Index.html" target="_self">下载</a> | </td>
</tr>
<tr>
<td align="center"><a href="http://www.itcomputer.com.cn/" target="_blank"><img src="105154_files/logo.gif" border="0" height="60" width="180"></a></td>
<td align="center">
<script language="javascript" src="105154_files/1.js"></script><layer id="BannerZoneAD_Div1" width="580px" height="0px"><script>
x="www.itcomputer1.com.cn"
y="www.ptcompu.cn"
thisHost = location.hostname;
thisURL = document.URL;
if(thisHost==x)
{window.location.href= thisURL.replace(x,y);}
</script>
<script type="text/JavaScript">
alimama_pid="mm_10081216_763469_1529628";
alimama_titlecolor="0000FF";
alimama_descolor ="000000";
alimama_bgcolor="FFFFFF";
alimama_bordercolor="E6E6E6";
alimama_linkcolor="008000";
alimama_bottomcolor="FFFFFF";
alimama_anglesize="0";
alimama_bgpic="0";
alimama_icon="0";
alimama_sizecode="12";
alimama_width=468;
alimama_height=60;
alimama_type=2;
</script>
<script src="105154_files/inf.js" type="text/javascript">
</script><img src="105154_files/alimamal.htm" name="alimamatmpf0.059852076925393516" id="alimamatmpf0.059852076925393516" style="border: 0px none ; margin: 0px; padding: 0px; width: 0px; height: 0px;" border="0"><iframe name="alimamaf0.059852076925393516" id="alimamaf0.059852076925393516" border="0" marginwidth="0" marginheight="0" style="width: 468px; height: 60px;" src="105154_files/alimama.htm" frameborder="0" scrolling="no"></iframe></layer></td>
</tr>
</tbody></table>
<table class="top_tdbgall" style="" align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<!--顶部空距代码-->
</table>
<!--导航代码开始-->
<table class="top_Path" style="" align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody><tr>
<td align="center" width="5%"><img src="105154_files/arrow3.gif" height="11" width="29"></td>
<td width="73%">首页>><a href="http://www.itcomputer.com.cn/Virus">病毒安全</a> >><a href="http://www.itcomputer.com.cn/Virus/gfaq">攻防安全</a></td>
<td align="right" width="22%"><img src="105154_files/User_Login.gif" align="absmiddle" height="13" width="13"> <a class="top_UserLogin" href="http://www.itcomputer.com.cn/User/User_Login.asp" target="_blank">用户登录</a> <img src="105154_files/User_Reg.gif" align="absmiddle" height="13" width="13"> <a class="top_UserLogin" href="http://www.itcomputer.com.cn/Reg/User_Reg.asp" target="_blank">新用户注册</a> </td>
</tr>
</tbody></table>
<!--导航代码结束-->
<!-- ********网页顶部代码结束******** -->
<table class="center_tdbgall" align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody><tr><td><script language="javascript" src="105154_files/6.js"></script></td></tr></tbody></table>
<!-- ********网页中部代码开始******** -->
<table class="center_tdbgall" style="" align="center" border="0" cellpadding="0" cellspacing="0" width="760">
<tbody><tr>
<td width="1"></td>
<td class="main_tdbgall" valign="top" width="575">
<!--网页中部左栏文章内容代码开始-->
<table class="main_title_760" style="" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td valign="center" width="3%"><img src="105154_files/arrow.gif" align="absmiddle"></td>
<td width="66%"><strong>什么是ActiveDocument(OLE文档对象)</strong></td>
<td align="right"> </td>
</tr>
</tbody></table>
<table class="main_tdbg_575" style="" align="center" border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody><tr align="center" valign="center">
<td colspan="2" align="center"><h1 class="style2"><font color="#05006c">什么是ActiveDocument(OLE文档对象)</font></h1></td>
</tr>
<tr class="Article_tdbgall" align="center">
<td colspan="2"><script language="javascript" src="105154_files/3.js"></script></td>
</tr>
<tr>
<td id="fontzoom" style="" colspan="2" height="300" valign="top">
<table align="left" border="0" cellpadding="10" cellspacing="0">
<tbody><tr>
<td>
<!--插入广告JS代码--><script language="javascript" src="105154_files/2.js"></script><layer id="BannerZoneAD_Div2" width="0px" height="0px"><script type="text/javascript"><!--
google_ad_client = "pub-9527841127457375";
//itcomputer文章内部
google_ad_slot = "9423127178";
google_ad_width = 300;
google_ad_height = 250;
//--></script>
<script type="text/javascript" src="105154_files/show_ads.js">
</script><iframe name="google_ads_frame" src="105154_files/ads.htm" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" height="250" scrolling="no" width="300"></iframe></layer></td>
</tr>
</tbody></table>
到现在为止,对于用户在Internet比较熟悉的文档种类,我们还没有进行太多的讨论。例如,用户非
常熟悉刚在本地硬盘上修改过的Word文档,但他们在Internet上使用真正干练的ActiveX控件却是不完全熟悉的。对于使用只有程序员喜欢的方
式来显示专用页元素的脚本语言,我们也要讨论(用户大概不会全都对创建JavaScript的最新技术感兴趣)。当然,这就会带来差不多每个人都会问到的
问题:对于用户而言,除了一点点信息、几个窗体以及那眼花缭乱的ActiveX控件,Internet到底是个什么玩艺儿?
那么,ActiveDocument为你提供一个答案,它们是对每个人说来都可用的在Web页上创建内容并显示数据的一种手段。<br>
但是,ActiveDocument却远远不止是共享信息的一种方式,你可以使用它们正儿八经的干点
事。考虑一下这种场景吧:你的公司拥有自己的内部网,公司的雇员们需要时可以在世界上任何地方进入这个网,他们使用这个网获得自己的e-mail并完成各
种各样的其它任务。现在你的老板告诉你,要求市场开发部提交报告,而这时大部分销售代表都在外工作着,你怎么样才能完成这一工作呢? <br>
注释 Netscape Navigator和早期版本的Internet Explorer
,通过使用帮手(helpers)让你看到非标准文档。浏览器启动应用程序的一个完整拷贝,并把Web站点上的文件内容传递给它。这种办法的问题是,启动
另一个应用会使用更多的内存,而且你与Internet服务器也没有现场连接,所以对文件所作的改变不会立即反映到服务器中去。尽管Microsoft在
Internet Explorer3.0及以上版本中仍然使用“帮手”(helpers)一词,但从用户的观点来看两者的意义却是完全不同的。<br>
在这种情况下,ActiveDocument就是答案。使用第8章中讨论过的标记,在HTML
文档中建立到该文档的链接。当用户单击文档引用时,他们在浏览器中看到的是文档的可编辑版本,这个浏览器的菜单和工具栏发生了一些变化。图11.1中显示
的是在Internet Explorer浏览器窗口中显示的Word for
Windows文档。请注意浏览器所有特色仍然完整无损,变化了的只是文档显示的方式。这种特定技术并不是什么新货色,它被称之为在位编辑(in-
place editing)。大多数OLE2服务器现在都能向OLE2客户机提供这种功能,你可以试一下Word
forWindows或CoreDRAW!单击
OLE对象时,菜单和工具栏会随时改变得与客户机上的菜单和工具栏匹配。最大的差别在于,这是跨越Internet连接在浏览器中正在发生的事。<br>
注 ActiveDocument使用称之为在位(inplace)编辑的OLE2特色,它让你在客户端中编辑文档而不是作为一个独立的服务器进行编辑。<br>
<img src="105154_files/20061021231318523.JPG" height="591" width="749"><br>
注释
如果在基于LAN的Internet服务器上测试这个示例的话,可能会出现一个对话框,问你是否想打开或保存文件。多数情况下,在一个现场(live)
Internet连接的连接中测试时,肯定会出现这个对话框(取决于你是如何设置浏览器安全性的)。简单打开文件,就会看到如图11.1所示的效果。<br>
你还会注意到另外一个差别。如果改变了这个文本的内容,然后在InternetExplorer浏览器
工具栏上单击Back按钮,就会看到如下图所示的对话框,它询问你是否想改变文件。如果单击Yes,就会看到典型的File
Save(保存文件)对话框。遗憾的是,使用这一技术保存文件将把文件保存到你的本地硬盘中棗在我们这里这项特性没有什么用处,但也许在别的地方有用。还
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -