How do the fill(report) command works?
显示 更早的评论
Hi everyone! I've been trying to make a proper report in .docx for my project using Report Generator. And I was doing geat using Document class and moveToNextHolemethod:
import mlreportgen.dom.*
data = docx_getdata;
doc = Document('Report', 'docx', 'MyTemplate'); %для Report функция наполнения заглушек отличается
holeId = moveToNextHole(doc);
while ~strcmp(holeId, '#end#')
switch holeId
case 'gip'
ImportText(r, doc, data, holeId)
case 'sostav_pd'
ImportText(r, doc, data, holeId)
case 'remark_pd'
ImportText(r, doc, data, holeId)
case 'project_basement'
ImportText(r, doc, data, holeId)
case 'project_function'
ImportText(r, doc, data, holeId)
case 'main_calcs'
main_calcs.ImportCalcs(doc)
end
When i needed to input fancy equations, turns out that Document class can't provide me that experience. So, i swithed to Report class and now i dont understand how this fill(report) method, so i can fill holes in my template properly
I do apologize if i wrote smth wrong and i hope this community can help me out with this.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Standard File Formats 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!