日韩欧美人妻无码精品白浆,www.大香蕉久久网,狠狠的日狠狠的操,日本好好热在线观看

LOGO OA教程 ERP教程 模切知識(shí)交流 PMS教程 CRM教程 開發(fā)文檔 其他文檔  
 
網(wǎng)站管理員

DSOFramer下載+開發(fā)接口(微軟提供ole組件)

admin
2013年8月27日 18:32 本文熱度 6022
版本修改記錄:
V2.2.0.2修改:
            修改了HttpPost相對(duì)路徑的一些問(wèn)題。
V2.2.0.0增加:
            [id(0x00010041), helpstring("Get Rev Index")]
            HRESULT GetRevCount( [out,retval] long * pbool);

            [id(0x00010042), helpstring("Get Rev Index Info")]
            HRESULT GetRevInfo([in] long lIndex, [in]   long lType, [out,retval] BSTR* pbool);

            [id(0x00010043), helpstring("Set Doc Prop")]
            HRESULT SetValue([in] BSTR strValue, [in]   BSTR strName, [out,retval] long* pbool);

            [id(0x00010044), helpstring("Set Doc Variable")]
            HRESULT SetDocVariable([in] BSTR strVarName, [in]   BSTR strValue,[in] long lOpt, [out,retval] long* pbool);

            [id(0x00010045), helpstring("Save page To Doc")]
            HRESULT SetPageAs([in] BSTR strLocalFile, [in]   long lPageNum, [in]   long lType,[out,retval] long* pbool);

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

LoadDso.js

var s = ""
s += "<OBJECT id=DSOFramer align='middle' style='LEFT: 0px; WIDTH: 100%; TOP: 0px; HEIGHT: 100%'"
s += "classid=clsid:00460182-9E5E-11D5-B7C8-B8269041DD57 codeBase=DSOFramer.ocx#Version=2,2,0,0' >"
s += "</OBJECT>"
document.write(s)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
接口文檔:

/*
1.新建
*/
//新建Word
document.all.FramerControl1.CreateNew("Word.Document");
//新建Excel
document.all.FramerControl1.CreateNew("Excel.Sheet");

/*
2.打開文件
*/
//打開制定的本地文件
document.all.FramerControl1.Open("C:\\TestBook.xls");
//制定用Word來(lái)打開c:\plain.txt文件
document.all.FramerControl1.Open("C:\\Plain.txt",false, "Word.Document");
//打開服務(wù)器的文件
document.all.FramerControl1.Open "https://secureserver/test/mytest.asp?id=123",true, "Excel.Sheet", "MyUserAccount", "MyPassword");
//打開服務(wù)器的文件
document.all.FramerControl1.Open("http://localhost/1.doc", true);

/*
3.保存文件
*/
//到本地
document.all.FramerControl1.Save("c:\\1.doc",true);
//服務(wù)器
/*增加Http協(xié)議Post上傳接口,可以Post一個(gè)動(dòng)態(tài)頁(yè)面(jsp,asp,php...),由動(dòng)態(tài)頁(yè)面負(fù)責(zé)解析數(shù)據(jù)
bool HttpInit();
bool HttpAddPostString(BSTR strName, BSTR strValue);
bool HttpAddPostCurrFile(BSTR strFileID, BSTR strFileName);
BSTR HttpPost(BSTR bstr);      
*/

//初始化Http引擎
document.all.FramerControl1.HttpInit();
//增加Post變量
document.all.FramerControl1.HttpAddPostString("RecordID","20060102200");
document.all.FramerControl1.HttpAddPostString("UserID","李局長(zhǎng)");
//上傳打開的文件
document.all.FramerControl1.HttpAddPostCurrFile("FileData", "文檔名.doc");
//執(zhí)行上傳動(dòng)作
document.all.FramerControl1.HttpPost("http://xxxx.com/uploadfile.asp");

/*
4.修訂留痕
*/
//進(jìn)入留痕狀態(tài)
document.all.FramerControl1.SetTrackRevisions(1);
//進(jìn)入非留痕狀態(tài)
document.all.FramerControl1.SetTrackRevisions(0);
//接受當(dāng)前修訂
document.all.FramerControl1.SetTrackRevisions(4);

/*
5.設(shè)置當(dāng)前用戶
*/
document.all.FramerControl1.SetCurrUserName("張三");      

/*
6.設(shè)置當(dāng)前時(shí)間(筆跡留痕會(huì)顯示("Like 2006:02:07 11:11:11")
*/
document.all.FramerControl1.SetCurrTime("2006:02:07 11:11:11");

/*
7.設(shè)置和創(chuàng)建書簽,此功能比較強(qiáng)大,設(shè)置書簽數(shù)據(jù)、添加書簽和添加紅頭文件就靠他了
SetFieldValue(BSTR strFieldName, BSTR strValue, BSTR strCmdOrSheetName)
strFieldName:書簽名
strValue:要設(shè)置的值
strCmdOrSheetName:
命令
::ADDMARK:: 添加BookMark
::DELMARK::       刪除這個(gè)BookMark
::GETMARK:: 定位到這個(gè)BookMark
::FILE::                      插入的是文件
::JPG::        插入的是圖片
一般來(lái)說(shuō):WORD中書簽是做好的,可以通過(guò)此接口把外界數(shù)據(jù)設(shè)置進(jìn)書簽中去。
*/
//在當(dāng)前WORD位置插入標(biāo)簽,標(biāo)簽名為"book1",數(shù)值為"test"
document.all.FramerControl1.SetFieldValue("book1","test","::ADDMARK::");

//設(shè)置書簽"Time",數(shù)值為"2006-03-16 22:22:22"
document.all.FramerControl1.SetFieldValue("Time","2006-03-16 22:22:22","");

//在書簽位置"hongtou",插入紅頭文件"http://222.222.222.222/hongtou1.doc" 這樣,紅頭就自動(dòng)插進(jìn)去了
document.all.FramerControl1.SetFieldValue("hongtou","http://222.222.222.222/hongtou1.doc","::FILE::");

/*
8.設(shè)置菜單顯示情況
BOOL SetMenuDisplay(long lMenuFlag)
lMenuFlag為以下數(shù)值的組合
#define MNU_NEW                      0x01
#define MNU_OPEN                      0x02
#define MNU_CLOSE                       0x04
#define MNU_SAVE                      0x08
#define MNU_SAVEAS                   0x16
#define MNU_PGSETUP                   0x64
#define MNU_PRINT                       0x256
#define MNU_PROPS                       0x32
#define MNU_PRINTPV                   0x126
*/
//只有“新建”菜單可用
document.all.FramerControl1..SetMenuDisplay(1);
//只有“打開”菜單可用
document.all.FramerControl1.SetMenuDisplay(2);
//只有“打開”和“新建”菜單可用
document.all.FramerControl1.SetMenuDisplay(3);

/*
9.保護(hù)文檔和解保護(hù)文檔
lProOrUn:1:保護(hù)文檔;0:解除保護(hù)
lProType: 
wdNoProtection = -1,
wdAllowOnlyRevisions = 0,
wdAllowOnlyComments = 1,
wdAllowOnlyFormFields = 2
strProPWD:密碼
*/
//完全保護(hù)文檔,密碼為"pwd"
document.all.FramerControl1.ProtectDoc(1,1,"pwd");
//解除文檔保護(hù)               
document.all.FramerControl1.ProtectDoc(0,1,"pwd");

/*
10.顯示或隱藏修訂內(nèi)容
ShowRevisions(long nNewValue)
nNewValue = 0 則隱藏修訂
      = 1 則顯示修訂
*/
//顯示修訂留痕
document.all.FramerControl1.ShowRevisions(1);
//隱藏修訂留痕
document.all.FramerControl1.ShowRevisions(0);

/*
11.插入合并文件,
strFieldPath 文件路徑,可以是http,ftp的路徑

pPos = 0 //當(dāng)前鼠標(biāo)位置
1;文件開頭
2;文件末尾

pPos的第4位為1的時(shí)候,代表插入的是圖片
InSertFile(BSTR strFieldPath, long lPos)
*/
//文件頭部插入文件
document.all.FramerControl1.InSertFile("http://XX.com/XX.doc",1);
//文件尾部插入文件
document.all.FramerControl1.InSertFile("http://XX.com/XX.doc",2);
//當(dāng)前光標(biāo)位置插入文件
document.all.FramerControl1.InSertFile("http://XX.com/XX.doc",0);

//文件頭部插入圖片
document.all.FramerControl1.InSertFile("http://XX.com/XX.jpg",9);
//文件尾部插入圖片
document.all.FramerControl1.InSertFile("http://XX.com/XX.jpg",10);
//當(dāng)前光標(biāo)位置插入圖片
document.all.FramerControl1.InSertFile("http://XX.com/XX.jpg",8);

/*
0x31. 文檔另存為
            HRESULT SaveAs([in] VARIANT strFileName, [in] VARIANT dwFileFormat, [out,retval] long* pbool);      
參數(shù):
       strFileName:文件本地路徑,如c:\\11.doc
       dwFileFormat: 文件格式
dwFileFormat的數(shù)值為:
Excel: Type
enum XlFileFormat
{
xlAddIn = 18,
xlCSV = 6,
xlCSVMac = 22,
xlCSVMSDOS = 24,
xlCSVWindows = 23,
xlDBF2 = 7,
xlDBF3 = 8,
xlDBF4 = 11,
xlDIF = 9,
xlExcel2 = 16,
xlExcel2FarEast = 27,
xlExcel3 = 29,
xlExcel4 = 33,
xlExcel5 = 39,
xlExcel7 = 39,
xlExcel9795 = 43,
xlExcel4Workbook = 35,
xlIntlAddIn = 26,
xlIntlMacro = 25,
xlWorkbookNormal = -4143,
xlSYLK = 2,
xlTemplate = 17,
xlCurrentPlatformText = -4158,
xlTextMac = 19,
xlTextMSDOS = 21,
xlTextPrinter = 36,
xlTextWindows = 20,
xlWJ2WD1 = 14,
xlWK1 = 5,
xlWK1ALL = 31,
xlWK1FMT = 30,
xlWK3 = 15,
xlWK4 = 38,
xlWK3FM3 = 32,
xlWKS = 4,
xlWorks2FarEast = 28,
xlWQ1 = 34,
xlWJ3 = 40,
xlWJ3FJ3 = 41,
xlUnicodeText = 42,
xlHtml = 44
};
Word: Type
enum WdSaveFormat
{
wdFormatDocument = 0,
wdFormatTemplate = 1,
wdFormatText = 2,
wdFormatTextLineBreaks = 3,
wdFormatDOSText = 4,
wdFormatDOSTextLineBreaks = 5,
wdFormatRTF = 6,
wdFormatUnicodeText = 7,
wdFormatEncodedText = 7,
wdFormatHTML = 8
};
PPT:
enum PpSaveAsFileType
{
ppSaveAsPresentation = 1,
ppSaveAsPowerPoint7 = 2,
ppSaveAsPowerPoint4 = 3,
ppSaveAsPowerPoint3 = 4,
ppSaveAsTemplate = 5,
ppSaveAsRTF = 6,
ppSaveAsShow = 7,
ppSaveAsAddIn = 8,
ppSaveAsPowerPoint4FarEast = 10,
ppSaveAsDefault = 11,
ppSaveAsHTML = 12,
ppSaveAsHTMLv3 = 13,
ppSaveAsHTMLDual = 14,
ppSaveAsMetaFile = 15,
ppSaveAsGIF = 16,
ppSaveAsJPG = 17,
ppSaveAsPNG = 18,
ppSaveAsBMP = 19
};
 
*/

/*
0x32. 刪除本地文件
                     HRESULT DeleteLocalFile([in] BSTR strFilePath);      
參數(shù):
       strFileName:文件本地路徑,如c:\\11.doc                     
*/            

/*
0x33.創(chuàng)建臨時(shí)文件
            HRESULT GetTempFilePath([out,retval] BSTR* strValue);      
返回:
臨時(shí)文件的路徑地址。使用完后,用DeleteLocalFile 刪除

*/

/*
0x34.設(shè)置文檔顯示模式
            HRESULT ShowView([in] long dwViewType, [out,retval] long * pbool);      
dwViewType的可取值為:
enum WdViewType
{
wdNormalView = 1,
wdOutlineView = 2,
wdPrintView = 3,
wdPrintPreview = 4,
wdMasterView = 5, //這個(gè)是大綱
wdWebView = 6
};
*/
//大綱模式
document.all.FramerControl1.ShowView(5);

/*
0x39:下載遠(yuǎn)程文件
            HRESULT DownloadFile( [in] BSTR strRemoteFile, [in] BSTR strLocalFile, [out,retval]   BSTR* strValue);      
參數(shù):
      strRemoteFile:遠(yuǎn)程路徑地址,http or Ftp
      strLocalFile: 本地保存地址,if strLocalFile == NULL then Create Temp File and return TempFile's Path

*/

/*
0x40:增加Http上傳時(shí)候的,附加其他文件
            HRESULT HttpAddPostFile([in] BSTR strFileID, [in]   BSTR strFileName, [out,retval] long* pbool);
參數(shù):
      strFileID:文件的ID,供服務(wù)器端頁(yè)面解析
      strFileName: 本地文件地址

*/

/*
0x41,0x42.獲取詳細(xì)的修訂信息。
GetRevCount( [out,retval] long * pbool);
GetRevInfo([in] long lIndex, [in]   long lType, [out,retval] BSTR* pbool);
例子如下
*/
var vCount;
vCount = document.all.FramerControl1.GetRevCount();
alert(vCount);
var vOpt = 0;
var vDate;
for(var i=1; i<= vCount; i++){
       vOpt = document.all.FramerControl1.GetRevInfo(i,2);
       if("1" == vOpt){
            vOpt = "插入";
       }else if("2" == vOpt){
            vOpt = "刪除";
       }else{
            vOpt = "未知操作";
       }
       vDate = new String(document.all.FramerControl1.GetRevInfo(i,1));
       vDate = parseFloat(vDate);
       alert(vDate);
       dateObj = new Date(vDate);

   alert(dateObj.getYear() + "年" + dateObj.getMonth() + 1 + "月" + dateObj.getDate() +"日" +   dateObj.getHours() +"時(shí)" +   dateObj.getMinutes() +"分" +   dateObj.getSeconds() +"秒" );
       alert("用戶:"+document.all.FramerControl1.GetRevInfo(i,0) + "\r\n操作:" + vOpt + "\r\n內(nèi)容:" + document.all.FramerControl1.GetRevInfo(i,3));
}

/*
0x43.設(shè)置基本信息:
            HRESULT SetValue([in] BSTR strValue, [in]   BSTR strName, [out,retval] long* pbool);

1.設(shè)置文件只讀密碼
       SetValue("password","::DOCPROP:PassWord");
2.設(shè)置文件修改密碼
       SetValue("password","::DOCPROP:WritePW");
返回值:
0 正確
-1:不支持此命令,請(qǐng)確定您的第二個(gè)參數(shù)沒(méi)有傳錯(cuò)
-127:異常
*/
//設(shè)置文件只讀密碼
document.all.FramerControl1.SetValue("password","::DOCPROP:PassWord");
//設(shè)置文件修改密碼
document.all.FramerControl1.SetValue("password","::DOCPROP:WritePW");

/*
0x44.設(shè)置文檔變量,這個(gè)很少能用到
            HRESULT SetDocVariable([in] BSTR strVarName, [in]   BSTR strValue,[in] long lOpt, [out,retval] long* pbool);

strVarName: 變量名
strVlaue:變量值
lOpt: 操作類型,
按位
第一位為1:   表示update域關(guān)聯(lián)的
第二位為1:   表示如果沒(méi)有這個(gè)變量則添加
第三位為1:   未來(lái)支持
return:
0:OK
-127:異常
*/
/*
0x45: 分頁(yè)保存
HRESULT SetPageAs([in] BSTR strLocalFile, [in]   long lPageNum, [in]   long lType,[out,retval] long* pbool);
strLocalFile:本地路徑
lPageNum:頁(yè)數(shù)
*/

該文章在 2013/8/27 18:32:35 編輯過(guò)
關(guān)鍵字查詢
相關(guān)文章
正在查詢...
點(diǎn)晴ERP是一款針對(duì)中小制造業(yè)的專業(yè)生產(chǎn)管理軟件系統(tǒng),系統(tǒng)成熟度和易用性得到了國(guó)內(nèi)大量中小企業(yè)的青睞。
點(diǎn)晴PMS碼頭管理系統(tǒng)主要針對(duì)港口碼頭集裝箱與散貨日常運(yùn)作、調(diào)度、堆場(chǎng)、車隊(duì)、財(cái)務(wù)費(fèi)用、相關(guān)報(bào)表等業(yè)務(wù)管理,結(jié)合碼頭的業(yè)務(wù)特點(diǎn),圍繞調(diào)度、堆場(chǎng)作業(yè)而開發(fā)的。集技術(shù)的先進(jìn)性、管理的有效性于一體,是物流碼頭及其他港口類企業(yè)的高效ERP管理信息系統(tǒng)。
點(diǎn)晴WMS倉(cāng)儲(chǔ)管理系統(tǒng)提供了貨物產(chǎn)品管理,銷售管理,采購(gòu)管理,倉(cāng)儲(chǔ)管理,倉(cāng)庫(kù)管理,保質(zhì)期管理,貨位管理,庫(kù)位管理,生產(chǎn)管理,WMS管理系統(tǒng),標(biāo)簽打印,條形碼,二維碼管理,批號(hào)管理軟件。
點(diǎn)晴免費(fèi)OA是一款軟件和通用服務(wù)都免費(fèi),不限功能、不限時(shí)間、不限用戶的免費(fèi)OA協(xié)同辦公管理系統(tǒng)。
Copyright 2010-2025 ClickSun All Rights Reserved

天天干天天A| 高阳县| 天天操天天爽天天流| 肏日韩女人的屄| 日韩无码视频一本| 鸡吧在线日| 男女抄B在线观看| 又长又粗的免费视频| 日韩高清熟女| 偷派自拍欧美| 成人一区二区欧洲| 99国产一区精品| 精品人妻aV电影一区二区三区| 欧美三级长视频| 福利精品偷拍| 午夜视频(92)| 日韩欧美激情无码精选久久| 国产夫妻性生活影视片段视频| 高雄县| 亚洲欧美牲交| 日韩三级激情欧美| 久久久久草草| AV在线免费图片| 大机巴日BB视频| 午夜影院免费观看黄色小电影| 色国产一区精品网站| 欧美日韩國产成人在线| 日韩第一页亚洲人妻| 欧美美女插入的网站| 深夜福利九九九| 日本在线免费不卡在线| 黄色色情小说网站观看| 欧美日韩不卡中文字幕| 鸥美高清操妞网| 精品综合久久久久久888,国产清 | 欧美在线综合不卡| 日日嗨aV一区二区| 婷婷四色激情| 午夜妓女网| 久亚洲熟妇| 久久精品美女网站|