How do I use MATLAB Compiler to compile an application that uses a report and stylesheet generated by MATLAB Report Generator?
Show older comments
I have created a report using MATLAB Report Generator. This report uses a custom stylesheet. I have written an MATLAB file called myfile.m that generates the report as follows:
function myfile
report myreport.rpt
myreport.rpt is linked to my custom stylesheet, mystylesheet.rgs. I would like to know how to compile this file so that it will correctly locate the report and stylesheet once I have deployed the application.
After compiling the above program with the command
mcc –m myfile
I receive the following warning message when executing the compiled application
Warning: Could not generate report. Error using ==> rptgen.loadRpt
File "myreport.rpt" not found
> In D:\Applications\MATLAB\R2006b\toolbox\compiler\mcr\matlab\iofun\@rptgen\report.p>locGenerateReport at 182
In D:\Applications\MATLAB\R2006b\toolbox\compiler\mcr\matlab\iofun\@rptgen\report.p>report at 93
In report at 49
In myfile at 2
Accepted Answer
More Answers (0)
Categories
Find more on C Shared Library Integration in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!