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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 986
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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;
Vista de pagina 407
1 2 ... 403 404 405 406 407 408 409 410 411 412 413 ... 985 986

Comentarios a estos manuales

Sin comentarios