Can you preview a report without closing it?
Afficher commentaires plus anciens
I would ideally like to regularly preview the appearance of a report without needing to regenerate the entire thing, however executing rptview() closes the report so it can no longer be edited.
Any report based object (report, chapter, etc) seems to use the same pointer since modifying one modifies both, so something like below would not work, as it closes both reports.
rpt2 = rpt;
rptview
In theory you could generate two parallel reports, but attempting to append the same object to multiple reports leads to an error as well.
import mlreportgen.report.*
import mlreportgen.dom.*
rpt = Report('test 1','pdf');
rpt2 = Report('test 2','pdf');
tp = TitlePage;
tp.Title = 'Title';
append(rpt,tp);
append(rpt2,tp);
Error using mlreportgen.report.ReporterBase/getImpl
Cannot add this reporter to report /test 2.pdf because it has also been added to report
/test 1.pdf.
In which case you'd have to make separate instances of everything you want to add to the report.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Code Verification dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!