1质量巡检图片导出问题处理

This commit is contained in:
夏菊 2025-04-25 16:18:01 +08:00
parent b66d6aeba3
commit 1204e9ec91
1 changed files with 10 additions and 0 deletions

View File

@ -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);