User`s guide
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;