Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
DocumentGenerator Class
The DocumentGenerator Class provides an interface to the document and web reporting facilities, which you can use to generate reports on specific packages, diagrams and elements in your model. This Class is accessed from the Repository Class using the CreateDocumentGenerator() method.
DocumentGenerator Attributes
Attribute |
Type |
Notes |
See Also |
ObjectType |
Read only Distinguishes objects referenced through a Dispatch interface.
|
|
DocumentGenerator Methods
Method |
Type |
Notes |
See Also |
||||||
DocumentDiagram ( |
Boolean |
Documents a diagram. Parameters:
|
|
||||||
DocumentElement ( |
Boolean |
Documents an element. Parameters:
|
|
||||||
DocumentModelAuthor ( |
Boolean |
Documents a model author. Parameters:
|
|
||||||
DocumentModelClient ( |
Boolean |
Documents a single model client. Parameters:
|
|
||||||
DocumentModelGlossary ( |
Boolean |
Documents a single model glossary term. Parameters:
|
|
||||||
DocumentModelIssue ( |
Boolean |
Documents a single model issue. Parameters:
|
|
||||||
DocumentModelResource ( |
Boolean |
Documents a single model resource. Parameters:
|
|
||||||
DocumentModelRole ( |
Boolean |
Documents a single model role. Parameters:
|
|
||||||
DocumentModelTask ( |
Boolean |
Documents a single model task. Parameters:
|
|
||||||
DocumentPackage ( |
Boolean |
Documents a package. Parameters:
|
|
||||||
GetLastError() |
String |
Returns a string value describing the most recent error that occurred in relation to this object.
|
|
||||||
Boolean |
Inserts a break into the report at the current location. Parameters:
|
|
|||||||
InsertCoverPageDocument ( |
Boolean |
Inserts the Coverpage into the document at the current location. Note: The style sheet is applied to the document before it is insert into the generated document.
Parameters:
|
|
||||||
InsertLinkedDocument ( |
Boolean |
Inserts a linked document into the report at the current location. A linked document can used to set the header and footer of the report. These are taken from the first linked document added to the report. Parameters:
|
|
||||||
InsertTableOfContents |
Boolean |
Inserts a Table of Contents at the current position.
|
|
||||||
InsertTeamReviewPost ( |
Boolean |
Inserts a Team Review posting into the report at the current location. Parameters:
|
|
||||||
InsertText ( |
Boolean |
Inserts static text into the report at the current location. A carriage return is not included; if you need to use one, you can add it manually. Parameters:
|
|
||||||
InsertTOCDocument ( |
Boolean |
Inserts the Table of Contents into the document at the current location. Note: The stylesheet is applied to the document before it is insert into the generated document. Parameters:
|
|
||||||
NewDocument ( |
Boolean |
Starts a new document; you call this before attempting to document anything else. Parameters:
|
|
||||||
ReplaceField ( |
Boolean |
Replaces the Section field identified by the fieldname parameter with the value provided in fieldvalue. For example:
ReplaceField ("Element.Alias", "MyAlias")
If you call this function more than once with the same fieldname, the field only has the most recent value set. Parameters:
|
|
||||||
Boolean |
Saves the document to disk. Parameters:
|
|
|||||||
Boolean |
Sets the current page orientation. Parameters:
|
|
|||||||
SetStyleSheetDocument ( |
Boolean |
Sets the Stylesheet to be used for TOC, Coverpage and templates used. This can be called before NewDocument (above). Parameters:
|
|
Learn more