Hello I am generating a Report with loops creating Chapters and Sections. However everytime a chapter is created, the page number goes back to 1. Is this a normal behavior?

댓글 수: 2

Sean de Wolski
Sean de Wolski 2019년 7월 18일
편집: Sean de Wolski 2019년 7월 18일
No. That's not normal. Can you provide repro steps?
Ok so basically what I do is I have a loop creating a new chapter at each iteration. The GetDocument function returns a chapter object.
I tried to clear ChapterTests as you can see in comments because I thought maybe some properties weren't overwritten by the new chapter but it didn't work...
for i = 22:length(txt)
% defining the variables
ScriptName = char(txt(i,1));
ControlSheet = char(txt(i,2));
TestFile = char(txt(i,6));
% get the data from the test
disp(ScriptName);
ChapterTests = GetDocument(path, folder, ScriptName, ControlSheet, TestFile, NumberOfGeneralExamples, NumberOfPASSExamples);
add(rpt, ChapterTests);
%clear ChapterTests
end

댓글을 달려면 로그인하십시오.

 채택된 답변

Paul Kinnucan
Paul Kinnucan 2019년 7월 18일

2 개 추천

A bug exists in R2017b that causes every chapter to begin on page 1. This bug was fixed in R2018, R2018a_update2, and R2017b_update7.

댓글 수: 1

Jack Arnoldi
Jack Arnoldi 2019년 7월 19일
편집: Jack Arnoldi 2019년 7월 19일
Thank you, I have the 9.4.0.813654 (R2018a) version, is it included in the R2018a Update 2 release?

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Paul Kinnucan
Paul Kinnucan 2019년 7월 19일

1 개 추천

Yes.

댓글 수: 4

Jack Arnoldi
Jack Arnoldi 2019년 7월 22일
So do you know anything else that could cause this problem?
Paul Kinnucan
Paul Kinnucan 2019년 7월 22일
Did you download R2018a_update2? This update should fix the issue that causes the problem. If not, please provide a minimal script to reproduce the problem, i.e., a script that generates two chapters.
Jack Arnoldi
Jack Arnoldi 2019년 7월 22일
I'm not on my personal computer so I can't install whatever I want, however you just told me my version was included in the update2 so I shouldn't need to install it?
But I will try to install the package.
Jack Arnoldi
Jack Arnoldi 2019년 7월 23일
Well, I managed to install the version and now the problem is solved, thank you!

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Reporting and Database Access에 대해 자세히 알아보기

질문:

2019년 7월 18일

댓글:

2019년 7월 23일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by