|
|
@ -11,7 +11,7 @@ var MainJS ="CLodopfuncs.js", |
|
|
|
var CreatedOKLodopObject, CLodopIsLocal, LoadJsState; |
|
|
|
var CreatedOKLodopObject, CLodopIsLocal, LoadJsState; |
|
|
|
|
|
|
|
|
|
|
|
//==判断是否需要CLodop(那些不支持插件的浏览器):==
|
|
|
|
//==判断是否需要CLodop(那些不支持插件的浏览器):==
|
|
|
|
function needCLodop() { |
|
|
|
export function needCLodop() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
var ua = navigator.userAgent; |
|
|
|
var ua = navigator.userAgent; |
|
|
|
if (ua.match(/Windows\sPhone/i) || |
|
|
|
if (ua.match(/Windows\sPhone/i) || |
|
|
@ -46,7 +46,7 @@ function needCLodop() { |
|
|
|
|
|
|
|
|
|
|
|
//==检查加载成功与否,如没成功则用http(s)再试==
|
|
|
|
//==检查加载成功与否,如没成功则用http(s)再试==
|
|
|
|
//==低版本CLODOP6.561/Lodop7.043及前)用本方法==
|
|
|
|
//==低版本CLODOP6.561/Lodop7.043及前)用本方法==
|
|
|
|
function checkOrTryHttp() { |
|
|
|
export function checkOrTryHttp() { |
|
|
|
if (window.getCLodop) { |
|
|
|
if (window.getCLodop) { |
|
|
|
LoadJsState = "complete"; |
|
|
|
LoadJsState = "complete"; |
|
|
|
return true; |
|
|
|
return true; |
|
|
@ -92,7 +92,7 @@ function checkOrTryHttp() { |
|
|
|
})(); |
|
|
|
})(); |
|
|
|
|
|
|
|
|
|
|
|
//==获取LODOP对象主过程,判断是否安装、需否升级:==
|
|
|
|
//==获取LODOP对象主过程,判断是否安装、需否升级:==
|
|
|
|
function getLodop(oOBJECT, oEMBED) { |
|
|
|
export function getLodop(oOBJECT, oEMBED) { |
|
|
|
var strFontTag = "<br><font color='#FF00FF'>打印控件"; |
|
|
|
var strFontTag = "<br><font color='#FF00FF'>打印控件"; |
|
|
|
var strLodopInstall = strFontTag + "未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>"; |
|
|
|
var strLodopInstall = strFontTag + "未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>"; |
|
|
|
var strLodopUpdate = strFontTag + "需要升级!点击这里<a href='install_lodop32.exe' target='_self'>执行升级</a>"; |
|
|
|
var strLodopUpdate = strFontTag + "需要升级!点击这里<a href='install_lodop32.exe' target='_self'>执行升级</a>"; |
|
|
|