MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Betriebsanweisung Seite 888

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 986
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 887
13 Create a Report Program
13-36
API. You can modify these templates and add your own templates by editing this file,
using the markup conventions.
You can also create a template part library file in an HTML template that you create
from scratch. In this case, you must ensure that the file observes the HTML markup
conventions that the DOM API uses to indicate the name and content of a document
part template in a document part library. To ensure this, copy the default template part
library file into the template you create from scratch.
Add a Template to an HTML Document Part Template Library File
1
Unzip the template package containing the part template library file.
2
Open the file, named docpart_templates.html by default, in an HTML or text
editor.
3
Create the following HTML markup in the <body> element of the file.
<div class="Template">
<div class="TemplateName">
<span class="TemplateName">TEMPLATE_NAME</span>
</div>
<div class="TemplateBody">
TEMPLATE_BODY
</div>
</div>
4
Replace TEMPLATE_NAME with a unique name for the template. Use this name in the
constructor of a DOM DocumentPart object to be based on this template.
5
Replace TEMPLATE_BODY with HTML markup that defines the fixed content and
holes of the template.
6
Save the library file.
7
Repackage the template.
See Also
Classes
mlreportgen.dom.DocumentPart
Related Examples
“Fill the Blanks in a Report Form” on page 13-29
Seitenansicht 887
1 2 ... 883 884 885 886 887 888 889 890 891 892 893 ... 985 986

Kommentare zu diesen Handbüchern

Keine Kommentare