IE浏览器 打印工具

IE浏览器 打印工具:

打印方法:

使用Object对象

打印对象: 

document.all.WebBrowser.ExecWB(6,1);

nCmdID, nCmdExecOpt, [pvaIn], [pvaOut]

第一个参数:

 

OLECMDID_OPEN = 1, /* 打开 */

OLECMDID_NEW = 2, 

OLECMDID_SAVE = 3, 

OLECMDID_SAVEAS = 4, 

OLECMDID_SAVECOPYAS = 5, 

OLECMDID_PRINT = 6, /* 打印 */

OLECMDID_PRINTPREVIEW = 7, 

OLECMDID_PAGESETUP = 8, 

OLECMDID_SPELL = 9, 

OLECMDID_PROPERTIES = 10, 

OLECMDID_CUT = 11, 

OLECMDID_COPY = 12, 

OLECMDID_PASTE = 13, 

OLECMDID_PASTESPECIAL = 14, 

OLECMDID_UNDO = 15, 

OLECMDID_REDO = 16, 

OLECMDID_selectALL = 17, 

OLECMDID_CLEARselectION = 18, 

OLECMDID_ZOOM = 19, 

OLECMDID_GETZOOMRANGE = 20 

OLECMDID_updateCOMMANDS = 21 

OLECMDID_REFRESH = 22 

OLECMDID_STOP = 23 

OLECMDID_HIDETOOLBARS = 24 

OLECMDID_SETPROGRESSMAX = 25 

OLECMDID_SETPROGRESSPOS = 26 

OLECMDID_SETPROGRESSTEXT = 27 

OLECMDID_SETTITLE = 28 

OLECMDID_SETDOWNLOADSTATE = 29 

OLECMDID_STOPDOWNLOAD = 30 

 

 

你可能感兴趣的:(解决方案,笔记,学习)