|
发表于 2011-4-26 09:38:00
|
显示全部楼层
呵呵,谢谢!最好是再详细一点的,麻烦了
shawn 发表于 2011-4-25 13:37:00
这个是 2011R3安装后,viewermap.xml中的内容:
<?xml version="1.0" encoding="utf-8"?>
<!-- CAXA PDEM file and viewer map define here -->
<!-- 图文档开发小组 -->
<!-- 版权属于CAXA -->
<!-- -->
<!-- ************** 编辑时请参照如下说明 ************* -->
<!-- VIEW name 项为系统自定义的viewer名称,任意定义 -->
<!-- prog_id 项为VIEWER的PROGID,可参考ActiveX COM -->
<!-- file_ext项为该viewer能够显示的文件后缀名,;不能-->
<!-- 少 -->
<!-- description项为viewer的描述,任意定义 -->
<!-- METHOD name项为系统统一的方法名,不能修改,InitViewer-->
<!-- 表示系统统一的文件浏览器初始方法,具体的viewer -->
<!-- 怎么如何初始化,则为nameinctrl项所定义的方法 -->
<!-- METHOD name项为系统统一的方法名,不能修改,OpenFile -->
<!-- 表示系统统一的打开文件浏览的方法,具体的viewer -->
<!-- 怎么打开文件浏览,则为nameinctrl项所定义的方法 -->
<!-- METHOD name项为系统统一的方法名,不能修改,CloseFile -->
<!-- 表示系统统一的关闭文件浏览的方法,具体的viewer -->
<!-- 怎么关闭文件浏览,则为nameinctrl项所定义的方法 -->
<!-- PARAM vt项表示方法参数的类型,其值如下定义: -->
<!-- VT_EMPTY= 0 -->
<!-- VT_NULL = 1 -->
<!-- VT_I2 = 2 -->
<!-- VT_I4 = 3 -->
<!-- VT_R4 = 4 -->
<!-- VT_R8 = 5 -->
<!-- VT_CY = 6 -->
<!-- VT_DATE = 7 -->
<!-- VT_BSTR = 8 -->
<!-- value项为参数值,如果该值由统一方法传入,该值 -->
<!-- 为空,同时PARAM值为YES -->
<!-- OPENTYPE = 0,代表使用控件ID打开 -->
<!-- OPENTYPE = 1,代表使用ShellExe打开 -->
<!-- OPENTYPE = 2,代表使用CreateProcess打开 -->
<!-- ************************************************* -->
<ALLVIEW>
<VIEW name="CAXA View" prog_id="CAXAVIEW.CaxaViewCtrl.1" file_ext="exb;dwg;cxp;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="OpenFile">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="Office View" prog_id="OA.OACtrl.1" file_ext="doc;docx;ppt;pptx;xls;xlsx;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="open">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
<METHOD name="CloseFile" nameinctrl="Close">
<PARAM vt="8" value="">NO</PARAM>
</METHOD>
</VIEW>
<VIEW name="Office View" prog_id="Shell.Explorer.2" file_ext="doc;docx;txt;ppt;xls;icd;cut;nc;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="Navigate">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="Office View" prog_id="DSOFramer.FramerControl" file_ext="doc;docx;ppt;xls;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="open">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
<METHOD name="initviewer" nameinctrl="Menubar" property="yes">
<PARAM vt="8" value="0">NO</PARAM>
</METHOD>
<METHOD name="initviewer" nameinctrl="Titlebar" property="yes">
<PARAM vt="8" value="0">NO</PARAM>
</METHOD>
<METHOD name="CloseFile" nameinctrl="Close">
<PARAM vt="8" value="">NO</PARAM>
</METHOD>
</VIEW>
<VIEW name="AutoVueX View" prog_id="AUTOVUEX.AutoVueXCtrl.1" file_ext="prt;asm;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="SRC">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="HSF View" prog_id="Hoops3dStream.Hoops3dStreamCtrl.1" file_ext="ics;hsf;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="FileName" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="eDrawings View" prog_id="EModelView.EModelViewControl" file_ext="sldprt;sldasm;slddrw;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="PDF View" prog_id="AcroRd32.exe" file_ext="pdf;" description="" opentype ="2">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="EXE View" prog_id="" file_ext="exe;bat;com" description="" opentype ="1">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="KM View" prog_id="DRAWKM32.DrawKm32Ctrl.1" file_ext="kmg;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="Caxa WorkFlow Template View" prog_id="EAP.WfViewerCtrl.1" file_ext="wft;" description="" opentype ="0">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="AVI View" prog_id="Storm.exe" file_ext="avi;" description="" opentype="1">
<METHOD name="OpenFile" nameinctrl="Filename" property="yes">
<PARAM vt="8" value="">YES</PARAM>
</METHOD>
</VIEW>
<VIEW name="proe View" prog_id="PVACTIVEX.PVactiveXCtrl.1" file_ext="1;2;3;4;5;6;7;8;9;" description="" opentype="0">
<METHOD name="OpenFile" nameinctrl="setFileNa |
|