Export report to PDF in matlab GUIDE

조회 수: 10 (최근 30일)
JB
JB 2018년 5월 11일
댓글: Josue Andrade 2020년 7월 21일
I have created a GUI where I want the final step to be a pushbutton which generates a report from a table array (CompleteCellArray). I am using this code to generate the report:
function [RptgenML_CReport1] = buildTEST
%BUILDTEST
% Auto-generated by MATLAB on 11-May-2018 17:56:48
% Create RptgenML.CReport
RptgenML_CReport1 = RptgenML.CReport('Format','pdf-fop',...
'Stylesheet','default-fo');
% setedit(RptgenML_CReport1);
% Create rptgen.cfr_table
rptgen_cfr_table1 = rptgen.cfr_table('Source','CompleteCellArray');
setParent(rptgen_cfr_table1,RptgenML_CReport1);
but when I run the code the pdf file is not generated, but the 1x1 CReport is generated. When I run the code from Report Generator it works perfectly. What am I doing wrong?
  댓글 수: 1
Josue Andrade
Josue Andrade 2020년 7월 21일
Hey!
You need to add the ".execute()" in the end.
Example:
test = buildtest(); %Your auto-generated build fuction
test.execute; %Generate the PDF from a RptgenML.CReport Object

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

답변 (0개)

카테고리

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

태그

제품


릴리스

R2015b

Community Treasure Hunt

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

Start Hunting!

Translated by