数据库(SQL)中图片(路径)导入到EXCEL
取到服务器资料库图片路径:
rs("other2") = "\\WILSON\商品图片\2052\6921302651001.jpg"
取到本机资料库图片路径
rs("other2") = "d:\good\1.jpg" Set exl = New Excel.Application
exl.Workbooks.Add
exl.Range("K6:N10").Select
exl.ActiveSheet.Pictures.Insert(rs("other2")Select
exl.Visible = True
当我用rs("other2") = "\\WILSON\商品图片\2052\6921302651001.jpg"出错
报:找不到属性Insert,不过昨天都可以用这个可以! 用rs("other2") = "d:\good\1.jpg"没问题
取到服务器资料库图片路径:
rs("other2") = "\\WILSON\商品图片\2052\6921302651001.jpg"
取到本机资料库图片路径
rs("other2") = "d:\good\1.jpg" Set exl = New Excel.Application
exl.Workbooks.Add
exl.Range("K6:N10").Select
exl.ActiveSheet.Pictures.Insert(rs("other2")Select
exl.Visible = True
当我用rs("other2") = "\\WILSON\商品图片\2052\6921302651001.jpg"出错
报:找不到属性Insert,不过昨天都可以用这个可以! 用rs("other2") = "d:\good\1.jpg"没问题
与
"d:\good\1.jpg"没问题 ==》本地
会不会“WILSO”机器没有共项?因为“昨天都可以用这个可以!”