Borrar filtros
Borrar filtros

moveToNextHole in Report Generator does not compile.

3 visualizaciones (últimos 30 días)
A Huang
A Huang el 4 de Mayo de 2016
Comentada: farzad el 21 de Mayo de 2020
I am using Matlab 2015b 32bit with Report Generator and compiler. moveToNextHole does not compile in the following example from the user guide:
======
function makerpt(title,author,content,rptname,rpttemplate) import mlreportgen.dom.* rpt = Document(rptname,'docx',rpttemplate);
while ~strcmp(rpt.CurrentHoleId,'#end#')
switch rpt.CurrentHoleId
case 'Title'
append(rpt,title);
case 'Author'
append(rpt,author);
case 'Content'
append(rpt,content);
end
moveToNextHole(rpt);
end
close(rpt);

Respuesta aceptada

Paul Kinnucan
Paul Kinnucan el 12 de Mayo de 2016
To be compilable, a MATLAB application that uses the DOM API must invoke makeDOMCompilable() before invoking any DOM function. See makeDOMCompilable.
  2 comentarios
A Huang
A Huang el 18 de Mayo de 2016
It works. Thanks a lot.
farzad
farzad el 21 de Mayo de 2020
dear Paul if I have a function in which I import rpt generator, should I use this command before calling that function or right before that line of importing ?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre MATLAB Report Generator en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by