slreportgen.report.DocBlock Class
Namespace: slreportgen.report
Superclasses: slreportgen.report.Reporter
DocBlock
reporter
Description
Use an object of the slreportgen.report.DocBlock
class to report on a
DocBlock block.
Note
To use a DocBlock reporter in a report, you must create the report using
the slreportgen.report.Report
class or subclass.
The reporter includes the DocBlock content in a report in one of these ways:
Includes the actual content in the report
Saves the content to an external file and adds a link to the file in the report
Embeds the content as a file in the report and adds a link to the embedded file
The table shows when the reporter includes, links to, or embeds the content,
depending on the DocBlock content type, the report type, and the values of the
ConvertHTML
and EmbedFile
properties.
DocBlock Content Type | Report Type | ConvertHTML Property | EmbedFile Property | Report Contains | ||
---|---|---|---|---|---|---|
DocBlock Content | External Link to DocBlock Content File | Link to Embedded DocBlock Content File | ||||
text | HTML | N/A | N/A | yes | no | no |
text | HTML-FILE | N/A | N/A | yes | no | no |
text | Word | N/A | N/A | yes | no | no |
text | N/A | N/A | yes | no | no | |
HTML | HTML | N/A | N/A | yes | no | no |
HTML | HTML-FILE | N/A | N/A | yes | no | no |
HTML | true | N/A | yes | no | no | |
HTML | false | true | no | no | yes | |
HTML | false | false | no | yes | no | |
HTML | Word | true | N/A | yes | no | no |
HTML | Word | false | N/A | no | yes | no |
RTF | N/A | true | no | no | yes | |
RTF | N/A | false | no | yes | no | |
RTF | Word | N/A | N/A | yes | no | no |
RTF | HTML | N/A | true | no | no | yes |
RTF | HTML | N/A | false | no | yes | no |
RTF | HTML-FILE | N/A | N/A | no | yes | no |
Note
To unlink subdocuments in a Microsoft® Word report that contains a DocBlock
of type RTF, use the function
docview
with the "unlinkdocxsubdoc"
and
"savedoc"
arguments:
docview(docxReportFile,"unlinkdocxsubdoc","savedoc");
The slreportgen.report.DocBlock
class is a handle
class.
Creation
Description
rptr = slreportgen.report.DocBlock
creates an
empty DocBlock reporter based on a default template. Customize the content
and format of the generated content by using the reporter properties. Before you add the
reporter to a report, you must specify the DocBlock in the Object
property of the reporter. Adding an empty reporter to a report produces an error.
rptr = slreportgen.report.DocBlock(
creates a DocBlock reporter for the DocBlock specified by
docBlockObj
)docBlockObj
, which can be a DocBlock path or handle.
See the Object
property.
sets the reporter properties using name-value pairs. You can specify multiple name-value
pair arguments in any order.rptr
= slreportgen.report.DocBlock(Name=Value
)
Properties
Methods
Examples
Version History
Introduced in R2019b