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!