1质量巡检图片导出问题处理
This commit is contained in:
parent
b66d6aeba3
commit
1204e9ec91
|
@ -807,6 +807,11 @@ namespace FineUIPro.Web.CQMS.Check
|
|||
foreach (string url in arrUrl)
|
||||
{
|
||||
var oneUrl = Server.MapPath("~/") + url;
|
||||
bool exists = File.Exists(oneUrl);
|
||||
if (!exists)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
byte[] bytes = System.IO.File.ReadAllBytes(oneUrl);
|
||||
int pictureIdx = workbook.AddPicture(bytes, PictureType.JPEG);
|
||||
|
||||
|
@ -837,6 +842,11 @@ namespace FineUIPro.Web.CQMS.Check
|
|||
foreach (string url in arrUrl)
|
||||
{
|
||||
var oneUrl = Server.MapPath("~/") + url;
|
||||
bool exists = File.Exists(oneUrl);
|
||||
if (!exists)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
byte[] bytes = System.IO.File.ReadAllBytes(oneUrl);
|
||||
int pictureIdx = workbook.AddPicture(bytes, PictureType.JPEG);
|
||||
|
||||
|
|
Loading…
Reference in New Issue