Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

表格中,二级列表渲染图片 #80

Open
tonyjonson8748 opened this issue Jul 4, 2024 · 0 comments
Open

表格中,二级列表渲染图片 #80

tonyjonson8748 opened this issue Jul 4, 2024 · 0 comments

Comments

@tonyjonson8748
Copy link

tonyjonson8748 commented Jul 4, 2024

我的版本是:MiniWord 0.8.0
系统环境:MacOs
程序环境:.net 6 控制台应用程序
操作流程:二级列表渲染图片不行,渲染文字可以。
渲染图片代码如下:
var hpImagesDicList=hpAlarmList.Select(hp => new Dictionary<string, object> { ["Name"] = hp.CameraName, ["Images"] = hp.PicPathArray.Select(picPath=>new MiniWordForeach { Value = new Dictionary<string, object> { ["Image"]=new MiniWordPicture { Path = Path.Combine("TestPic",picPath), Width = 180, Height = 180 } }, Separator = " " }).ToList() }).ToList(); wordDataDictionary.Add("HPImages",hpImagesDicList);

如果渲染成文字,把 ["Image"]=new MiniWordPicture { Path = Path.Combine("TestPic",picPath), Width = 180, Height = 180 }替换成["Image"]="abc"就没问题。

如果渲染成图片,会出现:
image

请求大佬解答,Ps,中文文档里面的QQ验证码请问是多少,加不了,您的Taobao也没有回复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant