Foxtable(狐表)用户栏目专家坐堂 → 导出


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

主题:导出

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:107673 积分:547686 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/12/26 20:00:00 [只看该作者]

试试

If e.Book.TempLate = "111" Then
    If e.region = "table_3" Then
        If FileSys.FileExists(ProjectPath & "Images\图片2.jpg") Then
            FileSys.DeleteFile(ProjectPath & "Images\图片2.jpg",2,2)
        End If
        If FileSys.FileExists(ProjectPath & "Images\图片1.jpg") Then
            FileSys.DeleteFile(ProjectPath & "Images\图片1.jpg",2,2)
        End If
        If e.DataRow.IsNull("图片") = False Then '图片列不为空
            Dim ftp1 As new ftpclient
            ftp1.host="172.16.120.41"
            ftp1.Account = "admin"
            ftp1.password = "qw123"
            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
                    system.Threading.Thread.Sleep(50)
                    Dim img As image = getImage(file)
                    Dim bmp As new bitmap(img, 100, 100 * (img.height / img.width))
                    bmp.save(ProjectPath & "Images\图片" & i+1 & ".jpg")
                    bmp.Dispose
                End If
            Next
        End If
    End If
End If

 回到顶部
总数 87 1 2 3 4 5 6 7 8 9 下一页