MATLAB Answers

how to close open pdf file generated by report generator before running code for another subject again.

5 views (last 30 days)
Sonia Shah
Sonia Shah on 27 Sep 2018
Answered: Rahul Singhal on 21 Jun 2019
I want to close rptview(report) automatically before running the code again for another subject.

  0 Comments

Sign in to comment.

Answers (1)

Rahul Singhal
Rahul Singhal on 21 Jun 2019
Hi Sonia,
Starting R2018b, you can use close or closeAll methods of mlreportgen.utils.rptviewer class to close the open PDF report.
Thanks,
Rahul

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!