Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
DocumentGenerator Class
The EA.DocumentGenerator Class provides an interface to the Enterprise Architect RTF and HTML reporting facilities, which you can use to generate reports on packages, diagrams and elements in your model. You access this Class from the Repository using the CreateDocumentGenerator() method.
DocumentGenerator Attributes
Attribute |
Type |
Action |
ObjectType |
Read only Distinguishes objects referenced through a Dispatch interface.
|
Document Generator Methods
Method |
Type |
Action |
||||||
DocumentDiagram (long diagramID, long nDepth, string templateName) |
Boolean |
Documents a diagram. Parameters:
|
||||||
DocumentElement (long elementID, long nDepth, string templateName) |
Boolean |
Documents an element. Parameters:
|
||||||
DocumentModelAuthor (string name, long nDepth, string templateName) |
Boolean |
Documents a model author. Parameters:
|
||||||
DocumentModelClient (string name, long nDepth, string templateName) |
Boolean |
Documents a single model client. Parameters:
|
||||||
DocumentModelGlossary (long id, long nDepth, string templateName) |
Boolean |
Documents a single model glossary term. Parameters:
|
||||||
DocumentModelIssue (long id, long nDepth, string templateName) |
Boolean |
Documents a single model issue. Parameters:
|
||||||
DocumentModelResource (string name, long nDepth, string templateName) |
Boolean |
Documents a single model resource. Parameters:
|
||||||
DocumentModelRole (string name, long nDepth, string templateName) |
Boolean |
Documents a single model role. Parameters:
|
||||||
DocumentModelTask (long id, long nDepth, string templateName) |
Boolean |
Documents a single model task. Parameters:
|
||||||
DocumentPackage (long packageID, long nDepth, string templateName) |
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:
|
|||||||
InsertLinkedDocument (string guid) |
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 (string path) |
Boolean |
Inserts a Team Review posting into the report at the current location. Parameters:
|
||||||
InsertText (string text, string style |
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:
|
||||||
NewDocument (string templateName) |
Boolean |
Starts a new document; you call this before attempting to document anything else. Parameters:
|
||||||
ReplaceField (string fieldname, string fieldvalue) |
Boolean |
Replaces the fieldname text with the value provided in fieldvalue. 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:
|
|||||||
SetPageOrientation (long pageOrientation) |
Boolean |
Sets the current page orientation. Parameters:
|
Learn more