Error closing Matlab Report Generator when compiled

조회 수: 1 (최근 30일)
Kevin Alland
Kevin Alland 2018년 2월 7일
댓글: Eric 2018년 2월 8일
I have a code which generates a .pdf report using the Matlab Report Generator. It works well when running it using matlab. However, after it is compiled to a .NET assembly for use with a C# web application using the Library compiler, the code runs completely until it is supposed to close the .pdf. I then get an error for "Error closing document package: fl:filesystem:PathNotFound". At this point there is a 0kb .pdf report available in the working directory. The FO folder is deleted. I have tried adding the working directory to the matlab runtime path, but that did not help

채택된 답변

Eric
Eric 2018년 2월 8일
Do you get this error when generating a very simple PDF with only text content? Can you provide a simple example where it works in MATLAB but fails outside of MATLAB.
  댓글 수: 2
Kevin Alland
Kevin Alland 2018년 2월 8일
편집: Kevin Alland 2018년 2월 8일
Thanks for your suggestions. It does work for a simple text .pdf. My issue was that I used a logo in .png form at the top of the report. I tried to include that in the compiled assembly as a file required for the library to run. The report generator therefore cannot find the path to the .png file to close the pdf. I removed the logo and it works fine.
Eric
Eric 2018년 2월 8일
Why can't you include your logo inside a template?
https://www.mathworks.com/help/rptgen/report-templates.html

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Report Generator에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by