MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guía de usuario Pagina 543

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 986
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 542
mlreportgen.dom.Container class
12-49
Tag for document element, specified as a string.
A session-unique ID is generated as part of document element creation. The generated
tag has the form CLASS:ID, where CLASS is the class of the element and ID is the value
of the Id property of the object. You can specify a tag to replace the generated tag.
Specify your own tag value, for example, to make it easier to identify where an issue
occurred during document generation.
Methods
Examples
Create Container for Word Report Formatting
Create a container object. Word output ignores the HTML container element tag (in this
example, the div tag).
import mlreportgen.dom.*;
rpt = Document('MyReport','docx');
c = Container();
Color all of the container text red.
c.Style = {Color('red')};
Append content to the container and append the container to the report.
append(c,Paragraph('Hello'));
append(c,Table(magic(5)));
append(rpt,c);
Close and generate the report.
close(rpt);
rptview(rpt.OutputPath);
“Create Object Containers”
“Add Content as a Group”
Vista de pagina 542
1 2 ... 538 539 540 541 542 543 544 545 546 547 548 ... 985 986

Comentarios a estos manuales

Sin comentarios