问题描述
<objectclassid="CLSID:ED146CB6-7E14-4265-A1FC-0B5AE8D3AFCF"codebase="bin/GetBarCode1.ocx"height="0"id="DSOCX"name="DSOCX"width="0"></object>
varcontent="<%=GetPrintData(ltlYear.Text+"-"+ltlMonth.Text,Session["EmpID"].ToString())%>";varisOne="<%=newSelf_service.Libraries.DAL.ModuleDAL().GetModel(6).IsOnlyOne%>";//varDSOCX;DSOCX.getUSBstateForIE();varcode=DSOCX.getUSBstateForIE();if(code==25){if(isOne==true){varcount=<%=newSelf_service.Libraries.DAL.PrintCountDAL().GetPrintCount(Session["EmpID"].ToString(),ltlYear.Text+"-"+ltlMonth.Text)%>;if(count>0){Msg("您本月薪资已打印");}else{DSOCX.DSPrintData(content,1);DSOCX.DSPrintData("0C",1);}}else{DSOCX.DSPrintData(content,1);DSOCX.DSPrintData("0C",1);}}else{Msg("请检查打印机是否连接失败或者设备缺纸");SendMail();}
在没有定义DSOCX的时候提示DSOCX未定义,定义DSOCX后提示不支持该属性或方法
解决方案
解决方案二:
哪位大神能帮我解决这问题
解决方案三:
解决方案四:
有人知道是为什么吗