Dim e As RequestEventArgs = args(0)
For Each dr As DataRow In DataTables("图库_木作定制").DataRows
Dim file As String = dr("原始_文件地址")
Dim img As image = getImage(file)
Dim bmp As bitmap
If img.width > 400 Then
If 400 * (img.height / img.width) > 600 Then
bmp = new bitmap(img, 400*(600/(800*(img.height/img.width))), 600)
Else
bmp = new bitmap(img, 400, 400 * (img.height / img.width))
End If
End If
bmp.save("D:\data\slt\" & dr("原始_文件夹") & "\" & FileSys.GetName(e.FileName))
这个就是存到新的目录下,代码报错,求助老师
Next