Foxtable(狐表)用户栏目专家坐堂 → 删除


  共有3478人关注过本帖平板打印复制链接

主题:删除

帅哥哟,离线,有人找我吗?
aaa1234
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:四尾狐 帖子:825 积分:1650 威望:0 精华:0 注册:2021/7/30 8:48:00
  发帖心情 Post By:2021/12/30 16:39:00 [只看该作者]

If e.Book.TempLate = "111" Then

    If e.region = "table_3" Then

Dim ftp1 As new ftpclient

ftp1.host="172.16.120.41"

ftp1.Account = "admin"

ftp1.password = "qw123"

If e.DataRow.IsNull("图片") = False Then '身份证号码是否为空

Dim fls As List(of String) = e.DataRow.Lines("图片")

For i As Integer = 0 To fls.count - 1

Dim file As String = "c:\data\Desert" & i & ".jpg"

If ftp1.Download(fls(i),file) = True Then

Dim img As image = getImage(file)

Dim bmp1 As new bitmap(img, 300, 300 * (img.height / img.width))

bmp1.save(ProjectPath & "Images\图片" & i+1 & ".jpg")

bmp1.Dispose

If fls.count = 1 Then

Dim bmp As new bitmap(1,1)
bmp.save(ProjectPath & "Images\图片2.jpg")

bmp.Dispose
End If

End If 

Next

Else

Dim bmp As new bitmap(1,1)
bmp.save(ProjectPath & "Images\图片1.jpg")
bmp.Dispose
bmp = new bitmap(1,1)
bmp.save(ProjectPath & "Images\图片2.jpg")

bmp.Dispose
End If 

End If


End If

 回到顶部
总数 26 1 2 3 下一页