MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guia do Utilizador Página 396

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 986
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 395
11 Functions – Alphabetical List
11-16
import mlreportgen.dom.*;
d = Document('mydoc','html');
ol = OrderedList({'first step' 'second step' 'last step'});
append(d,ol);
close(d);
rptview('mydoc','html');
Specify a Style for Appended Text
Use the Word Title style for the text.
import mlreportgen.dom.*;
d = Document('mydoc','docx');
append(d,'This Is a Title','Title');
close(d);
rptview('mydoc','docx');
Append a Cell Array as a Table
import mlreportgen.dom.*;
d = Document('mydoc');
table = append(d,{'row 1 - col 1' 'row 1 - col 2';...
'row 2 - col 1' 'row 2 - col 2'});
table.Style = {Border('double'),ColSep('solid'),RowSep('solid')};
close(d);
rptview('mydoc','html');
“Add Content to a Report”
Input Arguments
docObj — Document to append content to
mlreportgen.dom.Document object
Document to append content to, specified as an mlreportgen.dom.Document object.
textContent — Text to append to document
string
Text to append to document.
Vista de página 395
1 2 ... 391 392 393 394 395 396 397 398 399 400 401 ... 985 986

Comentários a estes Manuais

Sem comentários