MATLAB MATLAB REPORT GENERATOR - RELEASE NOTES Guide de l'utilisateur Page 408

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 986
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 407
11 Functions – Alphabetical List
11-28
mlreportgen.dom.Document.fill
Package: mlreportgen.dom
Fill document holes with generated content
Syntax
fill()
Description
fill() fills the holes in a document with generated content. Use this method with a
class derived from the mlreportgen.dom.Document class.
Examples
Add a fill Method to Invoke Hole-Specific fill Methods
This example shows how to define a report that fills a CustomerName hole in a Word
template.
Create a Word or HTML template that has a CustomerName hole. This example assumes
that there is a Word template called CustomerLetter.dotx.
In a file, create a report class derived from mlreportgen.dom.Document. From the
MATLAB toolstrip, select New > Class and define the class. For example:
classdef MyReport < mlreportgen.dom.Document
%MYREPORT defines a customize letter to customers
%
% rpt = MyReport('mydoc','docx','CustomerLetter');
% rpt.CustomerName = 'Smith';
% fill(rpt);
properties
CustomerName;
Vue de la page 407
1 2 ... 403 404 405 406 407 408 409 410 411 412 413 ... 985 986

Commentaires sur ces manuels

Pas de commentaire