Adding Headers and Footers to Holes in Template in Matlab Report
조회 수: 7 (최근 30일)
이전 댓글 표시
I have created a template in Microsoft word where I added Holes in the header and footer. Now I am trying to use matlab to fill it out.
This is the code I am using.
docHeaders = rpt.CurrentDOCXSection.PageHeaders;
while ~strcmp(docHeaders.CurrentHoleId,'#end#')
docHeaders.CurrentHoleId
docHeaders.CurrentHoleType
switch docHeaders.CurrentHoleId
case 'HeaderASTM'
append(docHeaders,app.ASTMVersionDropDown.Value);
end
moveToNextHole(docHeaders);
end
close(docHeaders);
the holes match, append method return an object, but when I open the document, the holes are empty.
답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Templates에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!