MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Podręcznik Użytkownika Strona 396

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 986
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 395
1 2 ... 391 392 393 394 395 396 397 398 399 400 401 ... 985 986

Komentarze do niniejszej Instrukcji

Brak uwag