一个类库引用了web service A,用另一个EXE做承载时,访问这个web service A时就提示:“在 ServiceModel 客户端配置部分中,找不到引用协定“IpsBarcode.ScanService”的默认终结点元素.这可能是因为未找到应用程序的配置文件,或者是因为客户端元素中找不到与此协定匹配的终结点元素.” 解决:把类库的App.config中<system.serviceModel>节点下的<bindings>和<client>配置节复制到E
在VBA中做了一个比较体积,如果体积相似就显示隔壁单元格的内容 Function VC(a, b As Range) 'VolumeCompare体积比较 Dim arry() As Variant Dim i, c, d As Integer Dim kmin As Double Dim kmindex As Variant arry = b.Value c = UBound(arry, 1) '区域的行数 d = UBound(arry, 2) '区域的列数 kmin = 1 ‘初始化最小值
Sub 找出选定范围内不重复的值() On Error Resume Next Dim d As Object Set d = CreateObject("scripting.dictionary") For c_i = 1 To selection.Columns.Count For Each ce In selection.Columns(c_i).Cells 'd.Add ce.Value, 1 If ce <> "" Then 'D(ce.Val